Enable SwiftLint rule 'unused_optional_binding' and fix all violations
This commit is contained in:
parent
ab80e5297e
commit
f70114e8d7
3 changed files with 3 additions and 3 deletions
|
|
@ -417,7 +417,7 @@ extension PasswordEditorTableViewController: PasswordSettingSliderTableViewCellD
|
|||
|
||||
extension PasswordEditorTableViewController: QRScannerControllerDelegate {
|
||||
func checkScannedOutput(line: String) -> (accept: Bool, message: String) {
|
||||
if let url = URL(string: line), let _ = Token(url: url) {
|
||||
if let url = URL(string: line), Token(url: url) != nil {
|
||||
return (accept: true, message: "ValidTokenUrl".localize())
|
||||
} else {
|
||||
return (accept: false, message: "InvalidTokenUrl".localize())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue