Skip to content

Commit eaac6d4

Browse files
committed
fix: option + boolean без Boolean
1 parent 12165dc commit eaac6d4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/com/github/_1c_syntax/bsl/languageserver/ParentProcessWatcher.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,11 @@ public void watch() {
6565
return;
6666
}
6767

68-
var processIsAlive = ProcessHandle.of(parentProcessId)
68+
boolean processIsAlive = ProcessHandle.of(parentProcessId)
6969
.map(ProcessHandle::isAlive)
70-
.orElse(Boolean.FALSE);
70+
.orElse(false);
7171

72-
if (processIsAlive.equals(Boolean.FALSE)) {
72+
if (!processIsAlive) {
7373
LOGGER.error("Parent process with pid {} is not found. Closing application...", parentProcessId);
7474
languageServer.exit();
7575
}

0 commit comments

Comments
 (0)