aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohan Liesén2012-09-05 09:19:34 +0200
committerJohan Liesén2012-09-05 09:19:34 +0200
commitedb1d3c8a5a5d9af7349cb87dda7a722b5210360 (patch)
treecfa172ecb2bbfc40f9adbf360e3a79878cfebe70
parentf9af8019e58a0a9cdc53c3cc96a7938376d089f5 (diff)
downloadvimium-edb1d3c8a5a5d9af7349cb87dda7a722b5210360.tar.bz2
Tidy up if-statement
-rw-r--r--lib/utils.coffee2
1 files changed, 1 insertions, 1 deletions
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