mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00: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')
|
||||
if not l.strip():
|
||||
blank_lines += 1
|
||||
if blank_lines >= max_blank_lines:
|
||||
break
|
||||
if blank_lines >= max_blank_lines:
|
||||
break
|
||||
continue
|
||||
line = uncomment(l)
|
||||
if line is not None:
|
||||
license_block.append(line)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue