Skip to content

Commit

Permalink
fix Swiftlint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
ashtom committed Jan 5, 2025
1 parent 67e00b1 commit d28506e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
6 changes: 3 additions & 3 deletions Hadge/Controllers/LoginViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@ class LoginViewController: EntireViewController {

@IBAction func enterToken(_ sender: Any) {
let alertController = UIAlertController(title: "Use a Personal Access Token", message: "This option is only available for debugging purposes and will be removed from the release build.", preferredStyle: .alert)
let saveAction = UIAlertAction(title: "Save", style: .default, handler: { _ -> Void in
let saveAction = UIAlertAction(title: "Save", style: .default, handler: { _ in
let textField = alertController.textFields![0] as UITextField
GitHub.shared().storeToken(token: textField.text!)
})
let cancelAction = UIAlertAction(title: "Cancel", style: .default, handler: { _ -> Void in })
alertController.addTextField { (textField: UITextField!) -> Void in
let cancelAction = UIAlertAction(title: "Cancel", style: .default, handler: { _ in })
alertController.addTextField { (textField: UITextField!) in
textField.isSecureTextEntry = true
textField.placeholder = "Paste your Token here"
}
Expand Down
4 changes: 0 additions & 4 deletions Hadge/Controllers/SettingsViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,6 @@ class SettingsViewController: EntireTableViewController {
var aboutHelper = SettingsAboutHelper()
var syncHelper = SettingsSyncHelper()

override func viewDidLoad() {
super.viewDidLoad()
}

deinit {
NotificationCenter.default.removeObserver(self)
}
Expand Down

0 comments on commit d28506e

Please sign in to comment.