From b95417f4ccecc67e52781d93f990eb10a86c8283 Mon Sep 17 00:00:00 2001 From: Jonah Graham Date: Mon, 3 Feb 2025 17:36:57 -0500 Subject: [PATCH] Use ternary Apply @Hannes' suggestion Co-authored-by: Hannes Wellmann --- Jenkinsfile | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 8de0addf8c..702eb38d9c 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -230,11 +230,7 @@ pipeline { runOnNativeBuildAgent("${PLATFORM}") { cleanWs() // Workspace is not cleaned up by default, so we do it explicitly echo "OS: ${os}, ARCH: ${arch}" - if (ws == 'gtk4') { - unstash "swt.binaries.sources.gtk" - } else { - unstash "swt.binaries.sources.${ws}" - } + unstash "swt.binaries.sources.${ws == 'gtk4' ? 'gtk' : ws }" dir('jdk.resources') { unstash "jdk.resources.${os}.${arch}" }