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() {
|
private init() {
|
||||||
do {
|
do {
|
||||||
|
if FileManager.default.fileExists(atPath: storeURL.path) {
|
||||||
try storeRepository = GTRepository.init(url: storeURL)
|
try storeRepository = GTRepository.init(url: storeURL)
|
||||||
|
}
|
||||||
} catch {
|
} catch {
|
||||||
print(error)
|
print(error)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue