Skip to content

Commit 930f60f

Browse files
committed
Same clean-up to semicolon linter.
1 parent b9e3582 commit 930f60f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Mathlib/Tactic/Linter/TextBased.lean

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -337,8 +337,7 @@ def trailingWhitespaceLinter : TextbasedLinter := fun lines ↦ Id.run do
337337
def semicolonLinter : TextbasedLinter := fun lines ↦ Id.run do
338338
let mut errors := Array.mkEmpty 0
339339
let mut fixedLines := lines
340-
for h : idx in [:lines.size] do
341-
let line := lines[idx]
340+
for (line, idx) in lines.zipWithIndex do
342341
let pos := line.find (· == ';')
343342
if pos != line.endPos then
344343
if line.get (line.prev pos) == ' ' then

0 commit comments

Comments
 (0)