Avoid unecessary loop evaluation on empty lines for tidy check_license

This commit is contained in:
Matt Schmoyer 2016-10-01 11:36:58 -04:00
parent d9f53cb14d
commit 616eb83bba

View file

@ -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)