diff options
| author | Johan Liesén | 2012-09-05 09:19:34 +0200 |
|---|---|---|
| committer | Johan Liesén | 2012-09-05 09:19:34 +0200 |
| commit | edb1d3c8a5a5d9af7349cb87dda7a722b5210360 (patch) | |
| tree | cfa172ecb2bbfc40f9adbf360e3a79878cfebe70 | |
| parent | f9af8019e58a0a9cdc53c3cc96a7938376d089f5 (diff) | |
| download | vimium-edb1d3c8a5a5d9af7349cb87dda7a722b5210360.tar.bz2 | |
Tidy up if-statement
| -rw-r--r-- | lib/utils.coffee | 2 |
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 |
