mirror of
https://github.com/servo/servo.git
synced 2025-07-23 15:23:42 +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
|
@ -151,6 +151,7 @@ def check_license(file_name, lines):
|
|||
blank_lines += 1
|
||||
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