Merge pull request #225 from tsl0922/fix-commit-log
Fix commit log view nil error
This commit is contained in:
commit
4047cd1ed0
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