Repo // Remove useless "== true".

This commit is contained in:
ShikiSuen 2022-06-02 01:06:02 +08:00
parent 376a97ea30
commit 758642e0cf
3 changed files with 2 additions and 5 deletions

View File

@ -74,7 +74,7 @@ class AppDelegate: NSObject, NSApplicationDelegate, ctlNonModalAlertWindowDelega
mgrPrefs.setMissingDefaults()
// 使
if (UserDefaults.standard.object(forKey: VersionUpdateApi.kCheckUpdateAutomatically) != nil) == true {
if UserDefaults.standard.object(forKey: VersionUpdateApi.kCheckUpdateAutomatically) != nil {
checkForUpdate()
}
}

View File

@ -300,7 +300,6 @@ class InputState {
return mgrLangModel.checkIfUserPhraseExist(
userPhrase: text, mode: ctlInputMethod.currentKeyHandler.inputMode, key: joined
)
== true
}
var userPhrase: String {

View File

@ -472,9 +472,7 @@ extension ctlInputMethod {
useVerticalMode = state.useVerticalMode
candidates = state.candidates
}
if useVerticalMode == true {
return true
}
if useVerticalMode { return true }
candidates.sort {
$0.count > $1.count
}