Skip to content

Commit 37b2b0a

Browse files
committed
Use set literal instead of disjunction
1 parent 8789dfb commit 37b2b0a

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

docs/codeql/writing-codeql-queries/river-answer-1-path.ql

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,7 @@
66
/** A possible cargo item. */
77
class Cargo extends string {
88
Cargo() {
9-
this = "Nothing" or
10-
this = "Goat" or
11-
this = "Cabbage" or
12-
this = "Wolf"
9+
this = ["Nothing", "Goat", "Cabbage", "Wolf"]
1310
}
1411
}
1512

0 commit comments

Comments
 (0)