Fix commit log view nil error
This commit is contained in:
parent
826357ca47
commit
8d117f1b1e
1 changed files with 3 additions and 2 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue