Skip to content

Commit

Permalink
fix: infinite loop
Browse files Browse the repository at this point in the history
Signed-off-by: ClemensLinnhoff <[email protected]>
  • Loading branch information
ClemensLinnhoff authored and github-actions[bot] committed Jun 23, 2023
1 parent 675a8a4 commit 5e6fecd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions verify-spdx-headers
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,8 @@ class Language:
def license(self, path):
"Find the license from the SPDX header."
with open(path) as f:
while f:
line = f.readline()

lines = f.readlines()
for line in lines:
for matcher in self.__match:
match = matcher.match(line)
if match:
Expand Down

0 comments on commit 5e6fecd

Please sign in to comment.