Skip to content

Commit 8989f93

Browse files
committed
Fix: early exit if stdout is empty
1 parent e99e1f3 commit 8989f93

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

linter.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,10 @@ def parse_output(self, proc, virtual_view): # type: ignore[override]
193193
if proc.stderr.strip():
194194
self.on_stderr(proc.stderr)
195195

196+
if not proc.stdout:
197+
self.logger.info('{}: no output'.format(self.name))
198+
return
199+
196200
try:
197201
# It is possible that users output debug messages to stdout, so we
198202
# only parse the last line, which is hopefully the actual eslint

0 commit comments

Comments
 (0)