Skip to content

Commit

Permalink
Remove extra blank line when there are no errors (aws-cloudformation#726
Browse files Browse the repository at this point in the history
)
  • Loading branch information
fatbasstard authored and cmmeyer committed Mar 14, 2019
1 parent 1f26a89 commit c199e89
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cfnlint/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ def main():
matches.extend(template_matches)
LOGGER.debug('Completed linting of file: %s', str(filename))

print(formatter.print_matches(matches))
if matches:
print(formatter.print_matches(matches))
return cfnlint.core.get_exit_code(matches)
except cfnlint.core.CfnLintExitException as e:
LOGGER.error(str(e))
Expand Down

0 comments on commit c199e89

Please sign in to comment.