Repo // Remove useless "== true".
This commit is contained in:
parent
376a97ea30
commit
758642e0cf
|
@ -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()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue