Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Nov 4, 2022
1 parent 7af6358 commit e536d42
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions lib/rules/no-invalid-html-attribute.js
Original file line number Diff line number Diff line change
Expand Up @@ -248,13 +248,15 @@ const fixMessages = {
}

function fix (fixer, mode, ...args) {
if (mode === 'removeTextRange') {
return fixer.replaceTextRange(args)
}
if (mode === 'removeRange') {
return fixer.removeRange(args)
}
return fixer.remove(args)
return () => {
if (mode === 'removeTextRange') {
return fixer.replaceTextRange(args);
}
if (mode === 'removeRange') {
return fixer.removeRange(args);
}
return fixer.remove(args);
};
}

function suggestion(desc, mode, ...args) {
Expand Down

0 comments on commit e536d42

Please sign in to comment.