Skip to content

Commit

Permalink
fix infinite loop
Browse files Browse the repository at this point in the history
  • Loading branch information
paulgessinger committed Aug 27, 2024
1 parent 1b4bc09 commit 52fdc72
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions CI/check_type_t.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def main():

exit_code = 0

files = []
inputs = []

if len(args.input) == 1 and os.path.isdir(args.input[0]):
# walk over all files
Expand All @@ -80,12 +80,12 @@ def main():
if any([fnmatch(str(filepath), e) for e in args.exclude]):
continue

files.append(filepath)
inputs.append(filepath)
else:
for file in args.input:
files.append(Path(file))
inputs.append(Path(file))

for filepath in files:
for filepath in inputs:
for c_type in type_list:
changed_lines = handle_file(file=filepath, fix=args.fix, c_type=c_type)
if len(changed_lines) > 0:
Expand Down

0 comments on commit 52fdc72

Please sign in to comment.