Commit af8552be authored by Brenden Blanco's avatar Brenden Blanco

Remove git-clang-format output when no files are modified

parent b3abbfc0
......@@ -135,9 +135,9 @@ def main():
print 'Running clang-format on the following files:'
for filename in changed_lines:
print ' ', filename
if not changed_lines:
print 'no modified files to format'
return
else:
print 'no modified files to format'
return
# The computed diff outputs absolute paths, so we must cd before accessing
# those files.
cd_to_toplevel()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment