Skip to content

Commit

Permalink
fix: no-assigning-return-values eslint 4
Browse files Browse the repository at this point in the history
  • Loading branch information
maddhruv committed Feb 19, 2020
1 parent 6c1d538 commit f8a2bec
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/rules/no-assigning-return-values.js
Expand Up @@ -57,8 +57,7 @@ function isCypressCommandDeclaration (declarator) {

if (!object) return
}

const commandName = get(object, 'parent.property.name')
const commandName = get(declarator, 'init.callee.property.name')

if (commandName && whitelistedCommands[commandName]) return

Expand Down

0 comments on commit f8a2bec

Please sign in to comment.