diff options
| author | Andrej Mihajlov <and@mullvad.net> | 2019-05-22 11:16:18 +0200 |
|---|---|---|
| committer | Andrej Mihajlov <and@mullvad.net> | 2019-05-22 11:35:39 +0200 |
| commit | 6239e34ce119b7f19f9c8552d219b6fce32c47fc (patch) | |
| tree | 0ac2905051f03ac09d4ccab41b8ca5724f609a73 | |
| parent | 6b034b8bd5a4a3118f1c5b06b53169b6b1e4eb2d (diff) | |
| download | mullvadvpn-6239e34ce119b7f19f9c8552d219b6fce32c47fc.tar.xz mullvadvpn-6239e34ce119b7f19f9c8552d219b6fce32c47fc.zip | |
Remove default case in favor of listing all of the cases manually
| -rw-r--r-- | ios/MullvadVPN/LoginViewController.swift | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ios/MullvadVPN/LoginViewController.swift b/ios/MullvadVPN/LoginViewController.swift index b0285caefd..e820413e94 100644 --- a/ios/MullvadVPN/LoginViewController.swift +++ b/ios/MullvadVPN/LoginViewController.swift @@ -197,7 +197,7 @@ class LoginViewController: UIViewController, HeaderBarViewControllerDelegate, UI case .success: headerBarController?.settingsButton.isEnabled = false - default: + case .default, .failure: headerBarController?.settingsButton.isEnabled = true activityIndicator.isAnimating = false } @@ -217,7 +217,7 @@ class LoginViewController: UIViewController, HeaderBarViewControllerDelegate, UI statusImageView.image = UIImage(imageLiteralResourceName: "IconSuccess") animateStatusImage(to: 1) - default: + case .default, .authenticating: animateStatusImage(to: 0) } } |
