From 5f48cb18e9cd9fae71137ea471b1c7d852c59540 Mon Sep 17 00:00:00 2001 From: Cedric Beust Date: Mon, 13 Feb 2017 10:05:44 -0800 Subject: [PATCH] Reformat. --- .../main/kotlin/com/beust/kobalt/internal/CompilerUtils.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/internal/CompilerUtils.kt b/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/internal/CompilerUtils.kt index 87c3970d..7ec632d9 100644 --- a/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/internal/CompilerUtils.kt +++ b/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/internal/CompilerUtils.kt @@ -189,15 +189,15 @@ class CompilerUtils @Inject constructor(val files: KFiles, val dependencyManager val outputDir = sourceSet.outputDir val variantSourceDirs = context.variant.resourceDirectories(project, sourceSet) - if (variantSourceDirs.size > 0) { + if (variantSourceDirs.isNotEmpty()) { context.logger.log(project.name, 2, "Copying $sourceSet resources") val absOutputDir = File(KFiles.joinDir(project.directory, project.buildDirectory, outputDir)) variantSourceDirs .map { File(project.directory, it.path) } .filter(File::exists) .forEach { - context.logger.log(project.name, 2, "Copying from $it to $absOutputDir") - KFiles.copyRecursively(it, absOutputDir, deleteFirst = false) + context.logger.log(project.name, 2, "Copying from $it to $absOutputDir") + KFiles.copyRecursively(it, absOutputDir, deleteFirst = false) } } else { context.logger.log(project.name, 2, "No resources to copy for $sourceSet")