Skip to content

Commit

Permalink
chore: code style modify as author suggested
Browse files Browse the repository at this point in the history
  • Loading branch information
Decodetalkers committed Feb 8, 2025
1 parent 72bd593 commit ef18adf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions server/src/main/kotlin/org/javacs/kt/KotlinLanguageServer.kt
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,11 @@ class KotlinLanguageServer(
val clientCapabilities = params.capabilities
config.completion.snippets.enabled = clientCapabilities?.textDocument?.completion?.completionItem?.snippetSupport ?: false

if (clientCapabilities?.window?.workDoneProgress == true) {
if (clientCapabilities?.window?.workDoneProgress ?: false) {
progressFactory = LanguageClientProgress.Factory(client)
}

if (clientCapabilities?.textDocument?.rename?.prepareSupport == true) {
if (clientCapabilities?.textDocument?.rename?.prepareSupport ?: false) {
serverCapabilities.renameProvider = Either.forRight(RenameOptions(false))
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ internal class CachedClassPathResolver(
// in old exposed this will throw error, but I do not know if it will throw again, so I catch here
updateClasspathCache(newClasspath, false)
} catch (e: Exception) {
LOG.warn("Something error during update database, error: ${e.message}")
LOG.warn("Error during database update, error: ${e.message}")
}

return newClasspath
Expand Down

0 comments on commit ef18adf

Please sign in to comment.