Remove redundant 'else' blocks

This commit is contained in:
Danny Moesch 2021-01-31 13:34:37 +01:00 committed by Mingshen Sun
parent ad4ed9419e
commit 1454693308
9 changed files with 22 additions and 57 deletions

View file

@ -81,17 +81,15 @@ class LabelTableViewCell: UITableViewCell {
case .password:
if isReveal {
return action == #selector(copy(_:)) || action == #selector(concealPassword(_:))
} else {
return action == #selector(copy(_:)) || action == #selector(revealPassword(_:))
}
return action == #selector(copy(_:)) || action == #selector(revealPassword(_:))
case .URL:
return action == #selector(copy(_:)) || action == #selector(openLink(_:))
case .HOTP:
if isReveal {
return action == #selector(copy(_:)) || action == #selector(concealPassword(_:)) || action == #selector(getNextHOTP(_:))
} else {
return action == #selector(copy(_:)) || action == #selector(revealPassword(_:)) || action == #selector(getNextHOTP(_:))
}
return action == #selector(copy(_:)) || action == #selector(revealPassword(_:)) || action == #selector(getNextHOTP(_:))
default:
return action == #selector(copy(_:))
}