1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 00:17:11 -07:00

Refactor.

This commit is contained in:
Cedric Beust 2017-02-13 10:39:34 -08:00
parent 3b88ecc4dc
commit f2b54ec0c0

View file

@ -55,7 +55,7 @@ class CompilerDescription(override val name: String, override val sourceDirecto
override val canCompileDirectories: Boolean = false) : ICompilerDescription {
override fun compile(project: Project, context: KobaltContext, info: CompilerActionInfo): TaskResult {
val result =
if (info.sourceFiles.size > 0) {
if (info.sourceFiles.isNotEmpty()) {
compiler.compile(project, context, info)
} else {
warn("Couldn't find any source files to compile")