Skip to content

Commit

Permalink
fix: use NullOutputStream.NULL_OUTPUT_STREAM rather than NullOutputSt…
Browse files Browse the repository at this point in the history
…ream.INSTANCE (#256)

Fixes an issue I was encountering where NullOutputStream.INSTANCE did not exist - unsure why it did not, but this change doesn't change anything since INSTANCE and NULL_OUTPUT_STREAM are the same, and other parts of the code base already use NULL_OUTPUT_STREAM
  • Loading branch information
Jamalam360 authored Dec 24, 2024
1 parent 02a29e4 commit 24c8201
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,13 @@ public static ExecResult exec(ExecOperations execOperations, Settings settings)
if (settings.getShowVerboseStdout().get()) {
spec.setStandardOutput(System.out);
} else {
spec.setStandardOutput(NullOutputStream.INSTANCE);
spec.setStandardOutput(NullOutputStream.NULL_OUTPUT_STREAM);
}

if (settings.getShowVerboseStderr().get()) {
spec.setErrorOutput(System.err);
} else {
spec.setErrorOutput(NullOutputStream.INSTANCE);
spec.setErrorOutput(NullOutputStream.NULL_OUTPUT_STREAM);
}
});
}
Expand Down

0 comments on commit 24c8201

Please sign in to comment.