Skip to content

Commit c7a3b65

Browse files
committed
Address copilot comment
1 parent 1723c6e commit c7a3b65

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ql/ql/src/codeql_ql/style/DeadCodeQuery.qll

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ AstNode hackyShouldBeTreatedAsAlive() {
6262
*/
6363
private AstNode alive() {
6464
//
65-
// The 5 base cases.
65+
// The 6 base cases.
6666
//
6767
// 1) everything that can be imported.
6868
result = publicApi()
@@ -80,7 +80,8 @@ private AstNode alive() {
8080
// 5) discard predicates
8181
result = discardPredicate()
8282
or
83-
result instanceof TopLevel // toplevel is always alive.
83+
// 6) toplevel is always alive.
84+
result instanceof TopLevel
8485
or
8586
// recursive cases
8687
result = aliveStep(alive())

0 commit comments

Comments
 (0)