Fix commit log view nil error

This commit is contained in:
Shuanglei Tao 2018-10-11 13:41:47 +08:00
parent 826357ca47
commit 8d117f1b1e

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
}