Change method name from exists to repositoryExisted
This commit is contained in:
parent
bdc2cfaaa8
commit
83fcfc8bb2
2 changed files with 2 additions and 2 deletions
|
|
@ -112,7 +112,7 @@ class SettingsTableViewController: UITableViewController {
|
||||||
auth != Defaults[.gitRepositoryAuthenticationMethod] ||
|
auth != Defaults[.gitRepositoryAuthenticationMethod] ||
|
||||||
username != Defaults[.gitRepositoryUsername] ||
|
username != Defaults[.gitRepositoryUsername] ||
|
||||||
password != PasswordStore.shared.gitRepositoryPassword ||
|
password != PasswordStore.shared.gitRepositoryPassword ||
|
||||||
PasswordStore.shared.exists() == false {
|
PasswordStore.shared.repositoryExisted() == false {
|
||||||
|
|
||||||
SVProgressHUD.setDefaultMaskType(.black)
|
SVProgressHUD.setDefaultMaskType(.black)
|
||||||
SVProgressHUD.setDefaultStyle(.light)
|
SVProgressHUD.setDefaultStyle(.light)
|
||||||
|
|
|
||||||
|
|
@ -180,7 +180,7 @@ class PasswordStore {
|
||||||
return pgp.getKeysOf(.secret)[0]
|
return pgp.getKeysOf(.secret)[0]
|
||||||
}
|
}
|
||||||
|
|
||||||
func exists() -> Bool {
|
func repositoryExisted() -> Bool {
|
||||||
let fm = FileManager()
|
let fm = FileManager()
|
||||||
return fm.fileExists(atPath: Globals.repositoryPath)
|
return fm.fileExists(atPath: Globals.repositoryPath)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue