Skip to content

Commit 5b17abf

Browse files
khiga8iansan5653
andauthored
Update src/rules/no-empty-string-alt.js
Co-authored-by: Ian Sanders <[email protected]>
1 parent e725906 commit 5b17abf

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/rules/no-empty-string-alt.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ module.exports = {
3030
const lineNumber = token.lineNumber;
3131
const lines = params.lines.slice(lineRange[0], lineRange[1]);
3232

33-
for (let i = 0; i < lines.length; i++) {
34-
const line = lines[i];
33+
for (const line of lines) {
3534
let matches;
3635
if (token.type === "inline") {
3736
matches = line.matchAll(markdownAltRegex);

0 commit comments

Comments
 (0)