Skip to content

Commit 204bbd4

Browse files
committed
Improve wording in comment
1 parent 3fab8c1 commit 204bbd4

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
@@ -1119,8 +1119,8 @@ export default {
11191119
const declaredDependenciesNode = node.arguments[callbackIndex + 1];
11201120
const isEffect = /Effect($|[^a-z])/g.test(reactiveHookName);
11211121

1122-
// Check whether a callback is supplied to useEffect. If there is no
1123-
// callback supplied then the hook will not work and React will throw a TypeError.
1122+
// Check whether a callback is supplied. If there is no callback supplied
1123+
// then the hook will not work and React will throw a TypeError.
11241124
// So no need to check for dependency inclusion.
11251125
if (!callback) {
11261126
reportProblem({

0 commit comments

Comments
 (0)