summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rules.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/rules.js b/rules.js
index 2bffc12..5e7c836 100644
--- a/rules.js
+++ b/rules.js
@@ -1197,9 +1197,10 @@ function is_adjacent_to_3econ_pipeline(s) {
}
function is_with_or_adjacent_to_mark(s, list) {
- for (let x of list)
- if (x === s || is_adjacent(x, s))
- return true
+ if (list)
+ for (let x of list)
+ if (x === s || is_adjacent(x, s))
+ return true
return false
}