Enable SwiftLint rule 'toggle_bool' and fix all violations

This commit is contained in:
Danny Moesch 2020-07-05 23:12:40 +02:00 committed by Mingshen Sun
parent 1b1bd46235
commit 937019d6e8
2 changed files with 2 additions and 2 deletions

View file

@ -162,7 +162,7 @@ whitelist_rules:
- switch_case_on_newline
- syntactic_sugar
- todo
# - toggle_bool
- toggle_bool
# - trailing_closure
# - trailing_comma
- trailing_newline

View file

@ -404,7 +404,7 @@ extension PasswordEditorTableViewController: FillPasswordTableViewCellDelegate {
// show/hide password settings (e.g., the length slider)
func showHidePasswordSettings() {
hidePasswordSettings = !hidePasswordSettings
hidePasswordSettings.toggle()
tableView.reloadSections([passwordSection], with: .fade)
}
}