Skip to content

Commit

Permalink
apply prettier (facebook#21165)
Browse files Browse the repository at this point in the history
  • Loading branch information
behnammodi authored and acdlite committed Apr 13, 2021
1 parent 4f7d816 commit d35c46f
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 d35c46f

Please sign in to comment.