Skip to content

Commit 1e30826

Browse files
committed
dont use a new iter every time (and never stop)
1 parent 160403a commit 1e30826

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/codeformat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ def batch(cmd, files, N=200, check=False):
223223
command = ["uncrustify", "-c", UNCRUSTIFY_CFG, "-lC", "--no-backup"]
224224
if not args.v:
225225
command.append("-q")
226-
batch(command, files)
226+
batch(command, iter(files))
227227
for file in files:
228228
fixup_c(file)
229229
# Format bindings with ruff_bindings

0 commit comments

Comments
 (0)