Skip to content

Commit

Permalink
Bad paren
Browse files Browse the repository at this point in the history
  • Loading branch information
NotWoods committed Dec 21, 2023
1 parent f3d75e6 commit cc19659
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/rules/forward-ref-uses-ref.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ module.exports = {
const shouldAddParentheses = node.type === 'ArrowFunctionExpression' && !isParenthesized(context, param);
return [].concat(
shouldAddParentheses ? fixer.insertTextBefore(param, '(') : [],
fixer.insertTextAfter(param, `, ref${shouldAddParentheses ? ')' : ''}`),
};
fixer.insertTextAfter(param, `, ref${shouldAddParentheses ? ')' : ''}`)

Check warning on line 77 in lib/rules/forward-ref-uses-ref.js

View check run for this annotation

Codecov / codecov/patch

lib/rules/forward-ref-uses-ref.js#L74-L77

Added lines #L74 - L77 were not covered by tests
);
},
}
),
Expand Down

0 comments on commit cc19659

Please sign in to comment.