From d35c46fe50f721b195be205b6ada1986df6cfa9e Mon Sep 17 00:00:00 2001 From: Behnam Mohammadi Date: Thu, 1 Apr 2021 23:39:16 +0430 Subject: [PATCH] apply prettier (#21165) --- packages/eslint-plugin-react-hooks/src/ExhaustiveDeps.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/packages/eslint-plugin-react-hooks/src/ExhaustiveDeps.js b/packages/eslint-plugin-react-hooks/src/ExhaustiveDeps.js index 268b6873bd589..f4c36fcf2202d 100644 --- a/packages/eslint-plugin-react-hooks/src/ExhaustiveDeps.js +++ b/packages/eslint-plugin-react-hooks/src/ExhaustiveDeps.js @@ -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.