Enable SwiftLint rule 'contains_over_first_not_nil' and fix all violations
This commit is contained in:
parent
08473f8f05
commit
7d79314bae
2 changed files with 2 additions and 2 deletions
|
|
@ -23,7 +23,7 @@ whitelist_rules:
|
|||
- conditional_returns_on_newline
|
||||
- contains_over_filter_count
|
||||
- contains_over_filter_is_empty
|
||||
# - contains_over_first_not_nil
|
||||
- contains_over_first_not_nil
|
||||
- control_statement
|
||||
# - convenience_type
|
||||
- custom_rules
|
||||
|
|
|
|||
|
|
@ -265,7 +265,7 @@ class PasswordEditorTableViewController: UITableViewController {
|
|||
// Remove delimiter configuration for XKCD style passwords. Re-add it for random ones.
|
||||
switch flavor {
|
||||
case .random:
|
||||
guard tableData[1].first(where: isPasswordDelimiterCellData) == nil else {
|
||||
if tableData[1].contains(where: isPasswordDelimiterCellData) {
|
||||
return
|
||||
}
|
||||
tableData[1].insert([.type: PasswordEditorCellType.passwordGroupsCell], at: tableData[1].endIndex)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue