Use set literal instead of disjunction

This commit is contained in:
Chris Smowton
2022-12-08 13:49:53 +00:00
parent 8789dfb655
commit 37b2b0a128

View File

@@ -6,10 +6,7 @@
/** A possible cargo item. */
class Cargo extends string {
Cargo() {
this = "Nothing" or
this = "Goat" or
this = "Cabbage" or
this = "Wolf"
this = ["Nothing", "Goat", "Cabbage", "Wolf"]
}
}