From 937019d6e83f4587bdbad1e7bf515f38ba47656d Mon Sep 17 00:00:00 2001 From: Danny Moesch Date: Sun, 5 Jul 2020 23:12:40 +0200 Subject: [PATCH] Enable SwiftLint rule 'toggle_bool' and fix all violations --- .swiftlint.yml | 2 +- pass/Controllers/PasswordEditorTableViewController.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.swiftlint.yml b/.swiftlint.yml index a01393d..6ac8ebf 100644 --- a/.swiftlint.yml +++ b/.swiftlint.yml @@ -162,7 +162,7 @@ whitelist_rules: - switch_case_on_newline - syntactic_sugar - todo -# - toggle_bool + - toggle_bool # - trailing_closure # - trailing_comma - trailing_newline diff --git a/pass/Controllers/PasswordEditorTableViewController.swift b/pass/Controllers/PasswordEditorTableViewController.swift index 97a72d0..dc056dc 100644 --- a/pass/Controllers/PasswordEditorTableViewController.swift +++ b/pass/Controllers/PasswordEditorTableViewController.swift @@ -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) } }