aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rwxr-xr-xtools/sanitize_source_files.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/sanitize_source_files.py b/tools/sanitize_source_files.py
index 26998e22a9..d6e3ec62ae 100755
--- a/tools/sanitize_source_files.py
+++ b/tools/sanitize_source_files.py
@@ -116,7 +116,7 @@ def CopywriteChecker(file_content, unused_file_path):
def EOFNewlineAdder(file_content, file_path):
"""Adds a LF at the end of the file if it does not have one."""
- if file_content and file_content[-1] == '\n':
+ if file_content and file_content[-1] != '\n':
file_content += '\n'
print 'Added newline to %s' % file_path
return file_content