From 3bfc82c7bc1839a5d4deefc28273f82e7ebf97ee Mon Sep 17 00:00:00 2001 From: Luke Slater Date: Thu, 31 Jan 2013 18:53:58 +0100 Subject: [PATCH] remove unnecessary else --- modules/link/link.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/modules/link/link.js b/modules/link/link.js index f30c015..b72e8e8 100644 --- a/modules/link/link.js +++ b/modules/link/link.js @@ -47,10 +47,8 @@ var link = function(dbot) { } catch(err) { }; }); } else { - if(comicId) { + if(comicId !== "") { comicId = comicId + "/"; - } else { - comicId = ""; } var link = "http://xkcd.com/"+comicId+"info.0.json";