Skip to content

Commit f6800d3

Browse files
authored
Update display-name.js
1 parent 513cdf9 commit f6800d3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/rules/display-name.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -206,8 +206,8 @@ module.exports = {
206206

207207
if (
208208
currentNode.type === 'FunctionDeclaration'
209-
|| currentNode.type === 'FunctionExpression'
210-
|| currentNode.type === 'ArrowFunctionExpression'
209+
|| currentNode.type === 'FunctionExpression'
210+
|| currentNode.type === 'ArrowFunctionExpression'
211211
) {
212212
if (currentNode.body && hasVariableDeclaration(currentNode.body, identifierName)) {
213213
return true;
@@ -222,9 +222,9 @@ module.exports = {
222222

223223
if (
224224
(currentNode.type === 'FunctionDeclaration'
225-
|| currentNode.type === 'FunctionExpression'
226-
|| currentNode.type === 'ArrowFunctionExpression')
227-
&& currentNode.params
225+
|| currentNode.type === 'FunctionExpression'
226+
|| currentNode.type === 'ArrowFunctionExpression')
227+
&& currentNode.params
228228
) {
229229
const isParamShadowed = currentNode.params.some((param) => {
230230
if (param.type === 'Identifier' && param.name === identifierName) {

0 commit comments

Comments
 (0)