Moving source map to Function.

This commit is contained in:
Ben Vanik
2015-08-01 14:07:13 -07:00
parent 5aa50b3c18
commit b0425f7ee2
13 changed files with 121 additions and 114 deletions

View File

@@ -868,7 +868,9 @@ class LintCommand(Command):
'--diff',
], throw_on_error=False, stdout_path=difftemp)
with open(difftemp) as f:
not_modified = 'no modified files' in f.read()
contents = f.read()
not_modified = 'no modified files' in contents
not_modified = not_modified or 'did not modify' in contents
f.close()
if os.path.exists(difftemp): os.remove(difftemp)
if not not_modified: