Skip to content

Commit

Permalink
Directly get 'all' from settings since it's always present
Browse files Browse the repository at this point in the history
  • Loading branch information
kaste committed Dec 23, 2019
1 parent b2d0af5 commit 200a21a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion linter.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def run(self, cmd, code):

if not (
re.search(_flow_comment_re, code)
or self.settings.get('all')
or self.settings['all']
):
logger.info("did not find @flow pragma")
return ''
Expand Down

0 comments on commit 200a21a

Please sign in to comment.