Skip to content

Commit

Permalink
Fix: early exit if stdout is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
kaste committed Jan 26, 2024
1 parent e99e1f3 commit 8989f93
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions linter.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,10 @@ def parse_output(self, proc, virtual_view): # type: ignore[override]
if proc.stderr.strip():
self.on_stderr(proc.stderr)

if not proc.stdout:
self.logger.info('{}: no output'.format(self.name))
return

try:
# It is possible that users output debug messages to stdout, so we
# only parse the last line, which is hopefully the actual eslint
Expand Down

0 comments on commit 8989f93

Please sign in to comment.