From: supahgreg Date: Sat, 27 Apr 2013 14:45:02 +0000 (-0500) Subject: minor: remove duplicate check for params X-Git-Tag: 1.7.9~25^2~64^2^2~1 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=abbe9c1f555baa7ae14b9424ff995edb16122d1c;p=tt-rss.git minor: remove duplicate check for params --- diff --git a/js/functions.js b/js/functions.js index 8442e1c9..87c52b70 100644 --- a/js/functions.js +++ b/js/functions.js @@ -1269,13 +1269,11 @@ function backend_sanity_check_callback(transport) { if (params) { console.log('reading init-params...'); - if (params) { - for (k in params) { - var v = params[k]; - console.log("IP: " + k + " => " + v); + for (k in params) { + var v = params[k]; + console.log("IP: " + k + " => " + v); - if (k == "label_base_index") _label_base_index = parseInt(v); - } + if (k == "label_base_index") _label_base_index = parseInt(v); } init_params = params;