check if git repository is existed before load
This commit is contained in:
parent
d3f186013e
commit
a7bd92c61f
1 changed files with 3 additions and 1 deletions
|
|
@ -53,7 +53,9 @@ class PasswordStore {
|
|||
|
||||
private init() {
|
||||
do {
|
||||
try storeRepository = GTRepository.init(url: storeURL)
|
||||
if FileManager.default.fileExists(atPath: storeURL.path) {
|
||||
try storeRepository = GTRepository.init(url: storeURL)
|
||||
}
|
||||
} catch {
|
||||
print(error)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue