Skip to content

Commit

Permalink
fix: remove unnecessary exception from log (#628)
Browse files Browse the repository at this point in the history
  • Loading branch information
bastiandoetsch authored Oct 23, 2024
1 parent d4c96f5 commit 2f68e43
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/kotlin/snyk/common/lsp/LanguageServerWrapper.kt
Original file line number Diff line number Diff line change
Expand Up @@ -589,9 +589,10 @@ class LanguageServerWrapper(
val param = ExecuteCommandParams()
param.command = COMMAND_CODE_FIX_DIFFS
param.arguments = listOf(folderURI, fileURI, issueID)
val result = executeCommand(param, 120000) as List<*>
val diffList: MutableList<Fix> = mutableListOf()
val executeCommandResult = executeCommand(param, 120000) ?: return emptyList()

val diffList: MutableList<Fix> = mutableListOf()
val result = executeCommandResult as List<*>
result.forEach {
val entry = it as Map<String, *>
val fixId = entry["fixId"] as? String
Expand Down

0 comments on commit 2f68e43

Please sign in to comment.