Skip to content

Commit

Permalink
Fix json validator
Browse files Browse the repository at this point in the history
  • Loading branch information
facelessuser committed Sep 13, 2017
1 parent 83e90ce commit 85f2e8e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/validate_json_format.py
Expand Up @@ -181,9 +181,8 @@ def check_format(self, file_name):
self.log_failure(W_NL_END, count)
if RE_TRAILING_SPACES.match(line):
self.log_failure(W_TRAILING_SPACE, count)
if self.use_tabs:
if (RE_LINE_INDENT_TAB if self.use_tabs else RE_LINE_INDENT_SPACE).match(line) is None:
self.log_failure(W_INDENT, count)
if (RE_LINE_INDENT_TAB if self.use_tabs else RE_LINE_INDENT_SPACE).match(line) is None:
self.log_failure(W_INDENT, count)
count += 1
f.seek(0)
text = f.read()
Expand Down

0 comments on commit 85f2e8e

Please sign in to comment.