diff options
| author | Andrej Mihajlov <and@mullvad.net> | 2023-04-12 10:40:44 +0200 |
|---|---|---|
| committer | Andrej Mihajlov <and@mullvad.net> | 2023-04-12 13:31:59 +0200 |
| commit | eef240e71525bd0e34181d45d61ca143d136f066 (patch) | |
| tree | 91242a252d201b0af8e3c725c55c5b9ae2b7acd8 | |
| parent | e8f46279797933e8dd730bf11e6c85b00116218a (diff) | |
| download | mullvadvpn-eef240e71525bd0e34181d45d61ca143d136f066.tar.xz mullvadvpn-eef240e71525bd0e34181d45d61ca143d136f066.zip | |
Fix formatting issues
| -rw-r--r-- | ios/MullvadVPN/SettingsManager/SettingsManager.swift | 2 | ||||
| -rw-r--r-- | ios/MullvadVPN/View controllers/Login/LoginViewController.swift | 3 | ||||
| -rw-r--r-- | ios/RelaySelector/RelaySelector.swift | 2 |
3 files changed, 3 insertions, 4 deletions
diff --git a/ios/MullvadVPN/SettingsManager/SettingsManager.swift b/ios/MullvadVPN/SettingsManager/SettingsManager.swift index 06ae10f1a6..f24dfa3935 100644 --- a/ios/MullvadVPN/SettingsManager/SettingsManager.swift +++ b/ios/MullvadVPN/SettingsManager/SettingsManager.swift @@ -130,7 +130,7 @@ enum SettingsManager { let handleCompletion = { (result: SettingsMigrationResult) in // Reset store upon failure to migrate settings. if case .failure = result { - self.resetStore() + resetStore() } completion(result) } diff --git a/ios/MullvadVPN/View controllers/Login/LoginViewController.swift b/ios/MullvadVPN/View controllers/Login/LoginViewController.swift index e2770f65bf..fbef18bbc6 100644 --- a/ios/MullvadVPN/View controllers/Login/LoginViewController.swift +++ b/ios/MullvadVPN/View controllers/Login/LoginViewController.swift @@ -141,8 +141,7 @@ class LoginViewController: UIViewController, RootContainment { // There is no need to set the input accessory toolbar on iPad since it has a dedicated // button to dismiss the keyboard. if case .phone = UIDevice.current.userInterfaceIdiom { - contentView.accountInputGroup.textField.inputAccessoryView = self - .accountInputAccessoryToolbar + contentView.accountInputGroup.textField.inputAccessoryView = accountInputAccessoryToolbar } else { contentView.accountInputGroup.textField.inputAccessoryView = nil } diff --git a/ios/RelaySelector/RelaySelector.swift b/ios/RelaySelector/RelaySelector.swift index 9c3472cf74..2c315f5723 100644 --- a/ios/RelaySelector/RelaySelector.swift +++ b/ios/RelaySelector/RelaySelector.swift @@ -130,7 +130,7 @@ public enum RelaySelector { let endPort = inputRange[1] if startPort <= endPort { - return (startPort ... endPort) + return startPort ... endPort } else { return nil } |
