Skip to content

Commit a318ecb

Browse files
committed
JS: Simplify logic
1 parent e4a0325 commit a318ecb

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

shared/util/codeql/util/test/InlineExpectationsTest.qll

+1-4
Original file line numberDiff line numberDiff line change
@@ -798,14 +798,11 @@ module TestPostProcessing {
798798
}
799799

800800
private string getAnActiveTag() {
801-
result = "Alert"
801+
result = ["Alert", "RelatedLocation"]
802802
or
803803
getQueryKind() = "path-problem" and
804804
hasExpectationWithValue(["Source", "Sink"], _) and
805805
result = ["Source", "Sink"]
806-
or
807-
hasExpectationWithValue("RelatedLocation", _) and
808-
result = "RelatedLocation"
809806
}
810807

811808
private string getTagRegex() { result = "(" + concat(getAnActiveTag(), "|") + ")(\\[(.*)\\])?" }

0 commit comments

Comments
 (0)