mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 08:27:12 -07:00
Refactor.
This commit is contained in:
parent
3b88ecc4dc
commit
f2b54ec0c0
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@ class CompilerDescription(override val name: String, override val sourceDirecto
|
||||||
override val canCompileDirectories: Boolean = false) : ICompilerDescription {
|
override val canCompileDirectories: Boolean = false) : ICompilerDescription {
|
||||||
override fun compile(project: Project, context: KobaltContext, info: CompilerActionInfo): TaskResult {
|
override fun compile(project: Project, context: KobaltContext, info: CompilerActionInfo): TaskResult {
|
||||||
val result =
|
val result =
|
||||||
if (info.sourceFiles.size > 0) {
|
if (info.sourceFiles.isNotEmpty()) {
|
||||||
compiler.compile(project, context, info)
|
compiler.compile(project, context, info)
|
||||||
} else {
|
} else {
|
||||||
warn("Couldn't find any source files to compile")
|
warn("Couldn't find any source files to compile")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue