Repo // Remove useless "== true".
This commit is contained in:
parent
376a97ea30
commit
758642e0cf
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
|
|
@ -300,7 +300,6 @@ class InputState {
|
|||
return mgrLangModel.checkIfUserPhraseExist(
|
||||
userPhrase: text, mode: ctlInputMethod.currentKeyHandler.inputMode, key: joined
|
||||
)
|
||||
== true
|
||||
}
|
||||
|
||||
var userPhrase: String {
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue