Skip to content

Commit b0ce127

Browse files
committed
chore: short variable
1 parent 6534bb4 commit b0ce127

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/eslint-plugin-react-hooks/src/ExhaustiveDeps.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1252,8 +1252,8 @@ export default {
12521252
return; // Handled
12531253
}
12541254
// We'll do our best effort to find it, complain otherwise.
1255-
const scope = context.sourceCode.getScope
1256-
? context.sourceCode.getScope(node)
1255+
const scope = sourceCode.getScope
1256+
? sourceCode.getScope(node)
12571257
: context.getScope();
12581258
const variable = scope.set.get(callback.name);
12591259
if (variable == null || variable.defs == null) {

0 commit comments

Comments
 (0)