Skip to content

Commit f8a2bec

Browse files
committed
fix: no-assigning-return-values eslint 4
1 parent 6c1d538 commit f8a2bec

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/rules/no-assigning-return-values.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,7 @@ function isCypressCommandDeclaration (declarator) {
5757

5858
if (!object) return
5959
}
60-
61-
const commandName = get(object, 'parent.property.name')
60+
const commandName = get(declarator, 'init.callee.property.name')
6261

6362
if (commandName && whitelistedCommands[commandName]) return
6463

0 commit comments

Comments
 (0)