Enable SwiftLint rule 'empty_string' and fix all violations
This commit is contained in:
parent
bb9e85ddc8
commit
2dcc72722b
4 changed files with 5 additions and 5 deletions
|
|
@ -315,7 +315,7 @@ class PasswordEditorTableViewController: UITableViewController {
|
|||
private func insertScannedOTPFields(_ otpauth: String) {
|
||||
// update tableData
|
||||
var additionsString = ""
|
||||
if let additionsPlainText = (tableData[additionsSection][0][PasswordEditorCellKey.content] as? String)?.trimmed, additionsPlainText != "" {
|
||||
if let additionsPlainText = (tableData[additionsSection][0][PasswordEditorCellKey.content] as? String)?.trimmed, !additionsPlainText.isEmpty {
|
||||
additionsString = additionsPlainText + "\n" + otpauth
|
||||
} else {
|
||||
additionsString = otpauth
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue