From 16836de02b3e2879bdda804564c4636332e6144d Mon Sep 17 00:00:00 2001 From: Tamas Vajk Date: Wed, 14 Sep 2022 15:15:06 +0200 Subject: [PATCH] Code quality improvment to simplify test QL --- .../posix-only/kotlin/compiler_arguments/compArgs.ql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/ql/integration-tests/posix-only/kotlin/compiler_arguments/compArgs.ql b/java/ql/integration-tests/posix-only/kotlin/compiler_arguments/compArgs.ql index 2be349c0432..fe4bedba634 100644 --- a/java/ql/integration-tests/posix-only/kotlin/compiler_arguments/compArgs.ql +++ b/java/ql/integration-tests/posix-only/kotlin/compiler_arguments/compArgs.ql @@ -5,7 +5,7 @@ private string getArgument(Compilation c, int i) { if exists(arg.indexOf("-Xplugin=")) then result = "" else - if exists(string arg0 | arg0 = c.getArgument(i - 1) | arg0 = ["-classpath", "-jdk-home"]) + if c.getArgument(i - 1) = ["-classpath", "-jdk-home"] then result = "" else result = arg )