Fix a crash caused by forced unwrapping a variable
This commit is contained in:
parent
41764c147d
commit
174128998c
1 changed files with 1 additions and 1 deletions
|
|
@ -54,7 +54,7 @@ class AboutRepositoryTableViewController: BasicStaticTableViewController {
|
|||
var numberOfCommits: UInt = 0
|
||||
|
||||
do {
|
||||
if let _ = try self.passwordStore.storeRepository!.currentBranch().oid {
|
||||
if let _ = try self.passwordStore.storeRepository?.currentBranch().oid {
|
||||
numberOfCommits = self.passwordStore.storeRepository?.numberOfCommits(inCurrentBranch: NSErrorPointer(nilLiteral: ())) ?? 0
|
||||
}
|
||||
} catch {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue