Removed unnecessary safe-navigation operator from Build.get.
This commit is contained in:
parent
accf9d6d05
commit
b1488f7434
@ -52,11 +52,11 @@ final class Build {
|
||||
|
||||
static Build get(Map<String, Object> args) {
|
||||
new Build(
|
||||
args?.name as String ?: '',
|
||||
args?.outputDirFunction as Function<Build, OutputDir> ?: OutputDirFunctions.DEFAULT,
|
||||
args?.siteSpec as SiteSpec ?: SiteSpec.getBlank(),
|
||||
args?.globals as Map<String, Object> ?: [:],
|
||||
args?.taskFactorySpecs as Collection<TaskFactorySpec> ?: []
|
||||
args.name as String ?: '',
|
||||
args.outputDirFunction as Function<Build, OutputDir> ?: OutputDirFunctions.DEFAULT,
|
||||
args.siteSpec as SiteSpec ?: SiteSpec.getBlank(),
|
||||
args.globals as Map<String, Object> ?: [:],
|
||||
args.taskFactorySpecs as Collection<TaskFactorySpec> ?: []
|
||||
)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user