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() mgrPrefs.setMissingDefaults()
// 使 // 使
if (UserDefaults.standard.object(forKey: VersionUpdateApi.kCheckUpdateAutomatically) != nil) == true { if UserDefaults.standard.object(forKey: VersionUpdateApi.kCheckUpdateAutomatically) != nil {
checkForUpdate() checkForUpdate()
} }
} }

View File

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

View File

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