From cae7464e6bf4624ba276c5d27ddb6a993b8ba522 Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Thu, 21 Aug 2014 16:48:01 +0100 Subject: [PATCH] Remove redundant nested check. --- src/mkws-core.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/mkws-core.js b/src/mkws-core.js index ce06367..73571cc 100644 --- a/src/mkws-core.js +++ b/src/mkws-core.js @@ -669,10 +669,8 @@ mkws.pagerNext = function(tname) { } var c = config.credentials; if (c) { - if (c) { - s += ('&username=' + c.substr(0, c.indexOf('/')) + - '&password=' + c.substr(c.indexOf('/')+1)); - } + s += ('&username=' + c.substr(0, c.indexOf('/')) + + '&password=' + c.substr(c.indexOf('/')+1)); } mkws.log("generated sp_auth_url '" + s + "'"); return s; -- 1.7.10.4