Skip to content

Commit

Permalink
Handle no changed files correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
dcramer committed Sep 30, 2015
1 parent 82f1b29 commit 89e308d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion bin/lint
Expand Up @@ -5,4 +5,8 @@ import sys

from sentry.lint.engine import check_files

sys.exit(check_files(sys.argv[1:]))
file_list = sys.argv[1:]
if not file_list:
file_list = None

sys.exit(check_files(file_list))
2 changes: 1 addition & 1 deletion src/sentry/lint/engine.py
Expand Up @@ -53,7 +53,7 @@ def check_files(file_list=None):
]

try:
if not file_list:
if file_list is None:
files_to_check = get_files('.')

else:
Expand Down

0 comments on commit 89e308d

Please sign in to comment.