Enable SwiftLint rule 'private_action' and fix all violations

This commit is contained in:
Danny Moesch 2020-07-05 22:49:53 +02:00 committed by Mingshen Sun
parent 70d605e412
commit fe380d4d65
17 changed files with 23 additions and 23 deletions

View file

@ -137,10 +137,10 @@ class PasswordsViewController: UIViewController, UITableViewDataSource, UITableV
}
@IBAction
func cancelAddPassword(segue _: UIStoryboardSegue) {}
private func cancelAddPassword(segue _: UIStoryboardSegue) {}
@IBAction
func saveAddPassword(segue: UIStoryboardSegue) {
private func saveAddPassword(segue: UIStoryboardSegue) {
if let controller = segue.source as? AddPasswordTableViewController {
addPassword(password: controller.password!)
}
@ -438,7 +438,7 @@ class PasswordsViewController: UIViewController, UITableViewDataSource, UITableV
}
private func hideSectionHeader() -> Bool {
return passwordsTableEntries.count < Self.hideSectionHeaderThreshold || searchController.isActive
passwordsTableEntries.count < Self.hideSectionHeaderThreshold || searchController.isActive
}
func tableView(_: UITableView, titleForHeaderInSection section: Int) -> String? {