Skip to content

Commit 2b5dc12

Browse files
committed
Restore comments
1 parent 6e88b2a commit 2b5dc12

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/rules/no-unused-state.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,10 @@ function getInitialClassInfo() {
5151

5252
// Names of local variables that may be pointing to this.state. To
5353
// track this properly, we would need to keep track of all locals,
54-
// shadowing, assignments, etc. To keep things simple, we clear the
55-
// current set of aliases after each method definition and accept
56-
// that it will produce some false negatives.
57-
aliases: new Set()
54+
// shadowing, assignments, etc. To keep things simple, we only
55+
// maintain one set of aliases per method and accept that it will
56+
// produce some false negatives.
57+
aliases: null
5858
};
5959
}
6060

0 commit comments

Comments
 (0)