Removed unnecessary safe-navigation operator from Build.get.

This commit is contained in:
JesseBrault0709 2023-04-25 20:48:59 +02:00
parent accf9d6d05
commit b1488f7434

View File

@ -52,11 +52,11 @@ final class Build {
static Build get(Map<String, Object> args) { static Build get(Map<String, Object> args) {
new Build( new Build(
args?.name as String ?: '', args.name as String ?: '',
args?.outputDirFunction as Function<Build, OutputDir> ?: OutputDirFunctions.DEFAULT, args.outputDirFunction as Function<Build, OutputDir> ?: OutputDirFunctions.DEFAULT,
args?.siteSpec as SiteSpec ?: SiteSpec.getBlank(), args.siteSpec as SiteSpec ?: SiteSpec.getBlank(),
args?.globals as Map<String, Object> ?: [:], args.globals as Map<String, Object> ?: [:],
args?.taskFactorySpecs as Collection<TaskFactorySpec> ?: [] args.taskFactorySpecs as Collection<TaskFactorySpec> ?: []
) )
} }