From 4353e438a17cda2eba65bf05de47122fcd6780c2 Mon Sep 17 00:00:00 2001 From: Cedric Beust Date: Mon, 18 Jul 2016 01:30:05 -0800 Subject: [PATCH] Can't be null. --- .../src/main/kotlin/com/beust/kobalt/maven/aether/Aether.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/maven/aether/Aether.kt b/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/maven/aether/Aether.kt index 10c5d98b..7f500c9b 100644 --- a/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/maven/aether/Aether.kt +++ b/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/maven/aether/Aether.kt @@ -196,7 +196,7 @@ class AetherDependency(val artifact: Artifact): IClasspathDependency, Comparable CompletedFuture(td!!.root.artifact.file) } else { val resolved = aether.resolve(artifact) - if (resolved != null && resolved.size > 0) { + if (resolved.size > 0) { CompletedFuture(resolved[0].artifact.file) } else { CompletedFuture(File("DONOTEXIST")) // will be filtered out