Skip to content

Commit 279a7fe

Browse files
committed
lint
1 parent 7868bb7 commit 279a7fe

File tree

1 file changed

+5
-5
lines changed
  • plugins/amazonq/shared/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/lsp

1 file changed

+5
-5
lines changed

plugins/amazonq/shared/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/lsp/NodeExePatcher.kt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import java.nio.file.Path
1010

1111
/**
1212
* Hacky nonsense to support old glibc platforms like AL2
13-
* @see https://github.com/microsoft/vscode/issues/231623
14-
* @see https://github.com/aws/aws-toolkit-vscode/commit/6081f890bdbb91fcd8b60c4cc0abb65b15d4a38d
13+
* @see "https://github.com/microsoft/vscode/issues/231623"
14+
* @see "https://github.com/aws/aws-toolkit-vscode/commit/6081f890bdbb91fcd8b60c4cc0abb65b15d4a38d"
1515
*/
1616
object NodeExePatcher {
1717
const val GLIBC_LINKER_VAR = "VSCODE_SERVER_CUSTOM_GLIBC_LINKER"
@@ -22,14 +22,14 @@ object NodeExePatcher {
2222
val glibc = System.getenv(GLIBC_PATH_VAR)
2323
val nodePath = node.toAbsolutePath().toString()
2424

25-
if (!linker.isNullOrEmpty() && !glibc.isNullOrEmpty()) {
26-
return GeneralCommandLine(linker)
25+
return if (!linker.isNullOrEmpty() && !glibc.isNullOrEmpty()) {
26+
GeneralCommandLine(linker)
2727
.withParameters("--library-path", glibc, nodePath)
2828
.also {
2929
getLogger<NodeExePatcher>().info { "Using glibc patch: $it" }
3030
}
3131
} else {
32-
return GeneralCommandLine(nodePath)
32+
GeneralCommandLine(nodePath)
3333
}
3434
}
3535
}

0 commit comments

Comments
 (0)