Skip to content

Commit

Permalink
Update lib/rules/hook-use-state.js
Browse files Browse the repository at this point in the history
Co-authored-by: Jordan Harband <ljharb@gmail.com>
  • Loading branch information
duncanbeevers and ljharb committed Mar 14, 2022
1 parent 6c53425 commit 40a08a3
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/rules/hook-use-state.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ module.exports = {

const isSymmetricGetterSetterPair = valueVariable
&& setterVariable
&& expectedSetterVariableNames
&& expectedSetterVariableNames.indexOf(setterVariableName) !== -1
&& variableNodes.length === 2;

Expand Down

0 comments on commit 40a08a3

Please sign in to comment.