Skip to content

Commit e28bd3e

Browse files
fix: formatting and logical improvements
1 parent 8919f73 commit e28bd3e

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

lib/rules/no-invalid-html-attribute.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -245,8 +245,6 @@ const fixMessages = {
245245
removeEmpty:'"remove empty attribute {{attributeName}}"',
246246
removeInvalid: '“remove invalid attribute {{reportingValue}}”',
247247
removeWhitespaces: 'remove whitespaces in “{{reportingValue}}”',
248-
249-
250248
}
251249

252250
function splitIntoRangedParts(node, regex) {
@@ -365,12 +363,10 @@ function checkAttribute(context, node) {
365363
if (mode === 'removeTextRange') {
366364
return fixer.replaceTextRange(args)
367365
}
368-
else if (mode === 'removeRange') {
366+
if (mode === 'removeRange') {
369367
return fixer.removeRange(args)
370368
}
371-
else {
372369
return fixer.remove(args)
373-
}
374370
}
375371

376372
function suggestion(desc, fixer, mode, ...args) {

0 commit comments

Comments
 (0)