Enable SwiftLint rule 'toggle_bool' and fix all violations
This commit is contained in:
parent
1b1bd46235
commit
937019d6e8
2 changed files with 2 additions and 2 deletions
|
|
@ -162,7 +162,7 @@ whitelist_rules:
|
|||
- switch_case_on_newline
|
||||
- syntactic_sugar
|
||||
- todo
|
||||
# - toggle_bool
|
||||
- toggle_bool
|
||||
# - trailing_closure
|
||||
# - trailing_comma
|
||||
- trailing_newline
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue