Skip to content

Commit

Permalink
Update comment
Browse files Browse the repository at this point in the history
Co-authored-by: Ricky <[email protected]>
  • Loading branch information
gaearon and rickhanlonii authored Jul 7, 2020
1 parent 508f61b commit 916b82b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/eslint-plugin-react-hooks/src/ExhaustiveDeps.js
Original file line number Diff line number Diff line change
Expand Up @@ -1521,7 +1521,7 @@ function analyzePropertyChain(node, optionalChains) {
if (node.optional) {
// We only want to consider it optional if *all* usages were optional.
if (!optionalChains.has(result)) {
// Mark as optional.
// Mark as (maybe) optional. If there's a required usage, this will be overridden.
optionalChains.set(result, true);
}
} else {
Expand Down

0 comments on commit 916b82b

Please sign in to comment.