Fixes a bug that I encountered when the linter fails but doesn't write anything to stderr. The output from stdout is written to the file, replacing all the code with nothing or an error message. This is fixed by also checking the return code, i.e. if it's zero or not and branching accordingly.
Fixes a bug that I encountered when the linter fails but doesn't write anything to
stderr
. The output fromstdout
is written to the file, replacing all the code with nothing or an error message. This is fixed by also checking the return code, i.e. if it's zero or not and branching accordingly.