From edb1d3c8a5a5d9af7349cb87dda7a722b5210360 Mon Sep 17 00:00:00 2001 From: Johan Liesén Date: Wed, 5 Sep 2012 09:19:34 +0200 Subject: Tidy up if-statement --- lib/utils.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utils.coffee b/lib/utils.coffee index c43a283c..597e5f6c 100644 --- a/lib/utils.coffee +++ b/lib/utils.coffee @@ -38,7 +38,7 @@ Utils = # Completes a partial URL (without scheme) createFullUrl: (partialUrl) -> - if (!/^[a-z]{3,}:\/\//.test(partialUrl)) + unless /^[a-z]{3,}:\/\//.test partialUrl "http://" + partialUrl else partialUrl -- cgit v1.2.3