From 5b38419aed265bf7ccdc0ec8e24cf0b6d1ec3656 Mon Sep 17 00:00:00 2001 From: Cedric Beust Date: Thu, 8 Oct 2015 23:07:10 -0700 Subject: [PATCH] Code clean up. --- src/main/kotlin/com/beust/kobalt/maven/Http.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/com/beust/kobalt/maven/Http.kt b/src/main/kotlin/com/beust/kobalt/maven/Http.kt index b727a2a5..12493822 100644 --- a/src/main/kotlin/com/beust/kobalt/maven/Http.kt +++ b/src/main/kotlin/com/beust/kobalt/maven/Http.kt @@ -57,7 +57,7 @@ public class Http : KobaltLogger { .build() val response = OkHttpClient().newCall(request).execute() - if (! response.isSuccessful()) { + if (! response.isSuccessful) { error(response) } else { success(response)