Skip to content

Commit

Permalink
Clarify trailing whitespace logic
Browse files Browse the repository at this point in the history
  • Loading branch information
lethosor committed Mar 24, 2015
1 parent a5b2b92 commit 5c877e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion travis/lint.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class TrailingWhitespaceLinter(Linter):
msg = 'Contains trailing whitespace'
def check_line(self, line):
line = line.replace('\r', '')
return not line.strip() or not line.endswith(' ') and not line.endswith('\t')
return not line.strip() or (not line.endswith(' ') and not line.endswith('\t'))
def fix_line(self, line):
return line.rstrip('\t ')

Expand Down

0 comments on commit 5c877e4

Please sign in to comment.