From: Mike Taylor Date: Thu, 21 Aug 2014 15:48:01 +0000 (+0100) Subject: Remove redundant nested check. X-Git-Tag: 1.0.0~39^2~7^2~4^2~2 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=cae7464e6bf4624ba276c5d27ddb6a993b8ba522;p=mkws-moved-to-github.git Remove redundant nested check. --- 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;