Jeremy Muhlich
02/11/2026, 9:15 PMMaxime Garcia
02/12/2026, 8:43 AMJeremy Muhlich
02/12/2026, 4:54 PMfilename)? This seems like the perfect application for a switch. Otherwise the variable name needs to be repeated for each condition, which feels redundant. I do agree if it was only if/else then an if or a?b:c would be better.Jeremy Muhlich
02/12/2026, 4:56 PMMaxime Garcia
02/12/2026, 4:57 PMMaxime Garcia
02/12/2026, 4:58 PMJeremy Muhlich
02/12/2026, 5:04 PMsaveAs: { filename ->
if (filename.equals('versions.yml')) { null }
else if (!filename.contains('combined_')) { "${meta.id}/${filename}" }
else filename
}