Skip to content

Commit

Permalink
Remove git-clang-format output when no files are modified
Browse files Browse the repository at this point in the history
  • Loading branch information
Brenden Blanco committed Apr 19, 2016
1 parent b3abbfc commit af8552b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/git-clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit af8552b

Please sign in to comment.