Merge pull request #225 from tsl0922/fix-commit-log

Fix commit log view nil error
This commit is contained in:
Yishi Lin 2018-10-13 17:50:18 +08:00 committed by GitHub
commit 4047cd1ed0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -415,8 +415,9 @@ public class PasswordStore {
try enumerator.pushSHA(targetOID.sha)
}
for _ in 0 ..< count {
let commit = try enumerator.nextObject(withSuccess: nil)
commits.append(commit)
if let commit = try? enumerator.nextObject(withSuccess: nil) {
commits.append(commit)
}
}
return commits
}