Refactor Git URL related code, fix #336
This commit is contained in:
parent
e83a2f941e
commit
258906fdbb
8 changed files with 119 additions and 105 deletions
|
|
@ -89,8 +89,8 @@ public class PasswordStore {
|
|||
return (try? fm.allocatedSizeOfDirectoryAtURL(directoryURL: self.storeURL)) ?? 0
|
||||
}
|
||||
|
||||
public var numberOfLocalCommits: Int? {
|
||||
return (try? getLocalCommits())?.flatMap { $0.count }
|
||||
public var numberOfLocalCommits: Int {
|
||||
return (try? getLocalCommits())?.flatMap { $0.count } ?? 0
|
||||
}
|
||||
|
||||
public var lastSyncedTime: Date? {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue