diff options
Diffstat (limited to 'check-style.py')
-rwxr-xr-x | check-style.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/check-style.py b/check-style.py index 4b59f83ae..eebd13659 100755 --- a/check-style.py +++ b/check-style.py @@ -29,7 +29,7 @@ def find_chunks(diff): len = int(match.group(2)) end = start + len - if file.endswith('.c') or file.endswith('.h') or file.endswith('.vala'): + if len > 0 and (file.endswith('.c') or file.endswith('.h') or file.endswith('.vala')): chunks.append({ 'file': file, 'start': start, 'end': end }) return chunks |