From 30b14b99e2663c297329af529532e45299096227 Mon Sep 17 00:00:00 2001 From: Frank Viernau Date: Fri, 24 Sep 2021 12:14:45 +0200 Subject: [PATCH] ExamplesFunTest: Inline a variable for compactness Signed-off-by: Frank Viernau --- cli/src/funTest/kotlin/ExamplesFunTest.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cli/src/funTest/kotlin/ExamplesFunTest.kt b/cli/src/funTest/kotlin/ExamplesFunTest.kt index e69e4882d4c6d..f49042ca377ca 100644 --- a/cli/src/funTest/kotlin/ExamplesFunTest.kt +++ b/cli/src/funTest/kotlin/ExamplesFunTest.kt @@ -147,8 +147,7 @@ class ExamplesFunTest : StringSpec() { val result = evaluator.run(script) - val failedRules = result.violations.map { it.rule } - failedRules shouldContainExactlyInAnyOrder listOf( + result.violations.map { it.rule } shouldContainExactlyInAnyOrder listOf( "UNHANDLED_LICENSE", "COPYLEFT_LIMITED_IN_SOURCE", "VULNERABILITY_IN_PACKAGE",