Skip to content

Commit 279372b

Browse files
committed
fix: spotbugs issue
1 parent 65b4e08 commit 279372b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/main/java/com/diffplug/spotless/npm/NpmFormatterStepStateBase.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ protected ServerProcessInfo npmRunServer() throws ServerStartException, IOExcept
134134
logger.info("Launching npm server process failed. Process result:\n{}", result);
135135
}
136136
} catch (Throwable t) {
137-
ProcessRunner.Result result = server != null ? ThrowingEx.get(server::result) : null;
137+
ProcessRunner.Result result = ThrowingEx.get(server::result);
138138
logger.debug("Unable to forcibly end the server process. Process result:\n{}", result, t);
139139
}
140140
throw timeoutException;

0 commit comments

Comments
 (0)