Skip to content

Commit

Permalink
Use ternary
Browse files Browse the repository at this point in the history
Apply @hannes' suggestion

Co-authored-by: Hannes Wellmann <[email protected]>
  • Loading branch information
jonahgraham and HannesWell authored Feb 3, 2025
1 parent e8a46dd commit b95417f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
}
Expand Down

0 comments on commit b95417f

Please sign in to comment.