Skip to content

Commit

Permalink
Fix detekt errors
Browse files Browse the repository at this point in the history
  • Loading branch information
hegyibalint committed Jul 26, 2024
1 parent 788f609 commit 4ee370d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ class DeclarativeLanguageServer : LanguageServer, LanguageClientAware {
private var tracingLevel = TraceValue.Off;

private fun checkInitialized() {
if (!initialized) {
throw IllegalStateException("Language server not initialized")
require(initialized) {
"Language server is not initialized"
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ class DeclarativeWorkspaceService : WorkspaceService, LanguageClientAware {
override fun didChangeWatchedFiles(params: DidChangeWatchedFilesParams?) {
System.err.println("Changed watched files: ${params?.changes}")
}
}
}
2 changes: 1 addition & 1 deletion lsp/src/main/kotlin/org/gradle/declarative/lsp/Main.kt
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ fun main() {
// Wait until the language server is stopped
listening.get()
System.err.println("Gradle Declartive Language Server: stopped")
}
}

0 comments on commit 4ee370d

Please sign in to comment.