From abbe9c1f555baa7ae14b9424ff995edb16122d1c Mon Sep 17 00:00:00 2001 From: supahgreg Date: Sat, 27 Apr 2013 09:45:02 -0500 Subject: [PATCH] minor: remove duplicate check for params --- js/functions.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) 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; -- 2.39.5