Ver Fonte

clear code

marinofaggiana há 5 anos atrás
pai
commit
0b0d97fcfa
1 ficheiros alterados com 1 adições e 3 exclusões
  1. 1 3
      iOSClient/Login/NCAppConfigView.swift

+ 1 - 3
iOSClient/Login/NCAppConfigView.swift

@@ -75,9 +75,7 @@ class NCAppConfigView: UIViewController {
                 let account: String = "\(username) \(serverUrl)"
                 
                 // NO account found, clear
-                if NCManageDatabase.sharedInstance.getAccounts() == nil {
-                    NCUtility.sharedInstance.removeAllSettings()
-                }
+                if NCManageDatabase.sharedInstance.getAccounts() == nil { NCUtility.sharedInstance.removeAllSettings() }
                 
                 // Add new account
                 NCManageDatabase.sharedInstance.deleteAccount(account)