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) {
|
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> ?: []
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user