Skip to content

Commit 853dd9d

Browse files
committed
fix(settings): update comparison and remove unused dependency
Updated the string comparison in `fetchLocalLanguage` function to use `==` instead of `.equals()`. Removed the unused `kotlinx-coroutines-core` dependency from `build.gradle.kts`.
1 parent 4c4910b commit 853dd9d

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

build.gradle.kts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -212,9 +212,6 @@ allprojects {
212212

213213
dependencies {
214214
compileOnly(kotlin("stdlib-jdk8"))
215-
216-
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.8.1")
217-
218215
testOutput(sourceSets.getByName("test").output.classesDirs)
219216
}
220217
}

src/main/kotlin/cc/unitmesh/devti/settings/AutoDevSettingsState.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class AutoDevSettingsState : PersistentStateComponent<AutoDevSettingsState> {
5555

5656
fun fetchLocalLanguage() : String {
5757
//todo: refactor, this is hardcode and magic number. Maybe it needs to match with AbstractBundle.getLocale()
58-
if (language.equals("中文")) return "zh"
58+
if (language == "中文") return "zh"
5959
return "en"
6060
}
6161

0 commit comments

Comments
 (0)