Skip to content

Commit

Permalink
apply prettier (#21165)
Browse files Browse the repository at this point in the history
  • Loading branch information
behnammodi authored Apr 1, 2021
1 parent b130a0f commit 94fd121
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/eslint-plugin-react-hooks/src/ExhaustiveDeps.js
Original file line number Diff line number Diff line change
Expand Up @@ -255,10 +255,7 @@ export default {
}
}
} else if (name === 'useTransition') {
if (
id.type === 'ArrayPattern' &&
isArray(resolved.identifiers)
) {
if (id.type === 'ArrayPattern' && isArray(resolved.identifiers)) {
// Is first tuple value the same reference we're checking?
if (id.elements[0] === resolved.identifiers[0]) {
// Setter is stable.
Expand Down

0 comments on commit 94fd121

Please sign in to comment.