Skip to content

Commit ef18adf

Browse files
committed
chore: code style modify as author suggested
1 parent 72bd593 commit ef18adf

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

server/src/main/kotlin/org/javacs/kt/KotlinLanguageServer.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,11 +100,11 @@ class KotlinLanguageServer(
100100
val clientCapabilities = params.capabilities
101101
config.completion.snippets.enabled = clientCapabilities?.textDocument?.completion?.completionItem?.snippetSupport ?: false
102102

103-
if (clientCapabilities?.window?.workDoneProgress == true) {
103+
if (clientCapabilities?.window?.workDoneProgress ?: false) {
104104
progressFactory = LanguageClientProgress.Factory(client)
105105
}
106106

107-
if (clientCapabilities?.textDocument?.rename?.prepareSupport == true) {
107+
if (clientCapabilities?.textDocument?.rename?.prepareSupport ?: false) {
108108
serverCapabilities.renameProvider = Either.forRight(RenameOptions(false))
109109
}
110110

shared/src/main/kotlin/org/javacs/kt/classpath/CachedClassPathResolver.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ internal class CachedClassPathResolver(
121121
// in old exposed this will throw error, but I do not know if it will throw again, so I catch here
122122
updateClasspathCache(newClasspath, false)
123123
} catch (e: Exception) {
124-
LOG.warn("Something error during update database, error: ${e.message}")
124+
LOG.warn("Error during database update, error: ${e.message}")
125125
}
126126

127127
return newClasspath

0 commit comments

Comments
 (0)