mirror of
https://github.com/servo/servo.git
synced 2025-08-02 04:00:32 +01:00
Avoid unecessary loop evaluation on empty lines for tidy check_license
This commit is contained in:
parent
d9f53cb14d
commit
616eb83bba
1 changed files with 3 additions and 2 deletions
|
@ -149,8 +149,9 @@ def check_license(file_name, lines):
|
||||||
l = l.rstrip('\n')
|
l = l.rstrip('\n')
|
||||||
if not l.strip():
|
if not l.strip():
|
||||||
blank_lines += 1
|
blank_lines += 1
|
||||||
if blank_lines >= max_blank_lines:
|
if blank_lines >= max_blank_lines:
|
||||||
break
|
break
|
||||||
|
continue
|
||||||
line = uncomment(l)
|
line = uncomment(l)
|
||||||
if line is not None:
|
if line is not None:
|
||||||
license_block.append(line)
|
license_block.append(line)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue