Skip to content

Commit 75a322c

Browse files
Update src/lint/rules/algorithm-spelling.ts
Co-authored-by: Nicolò Ribaudo <nribaudo@igalia.com>
1 parent 81e8fcb commit 75a322c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/lint/rules/algorithm-spelling.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ export default function (
109109
if (!otherPattern.test(stepSource)) {
110110
report({
111111
ruleId,
112-
message: 'prefer "if _a_ or _b_" over "if _a_ or if _b_" (same for "and")',
112+
message: `prefer "if _a_ ${orIfMatch[1]} _b_" over "if _a_ ${orIfMatch[1]} if _b_"`,
113113
...offsetToLineAndColumn(algorithmSource, baseOffset + orIfMatch.index),
114114
});
115115
}

0 commit comments

Comments
 (0)