]> git.wh0rd.org Git - tt-rss.git/commitdiff
minor: remove duplicate check for params
authorsupahgreg <greg.parris@gmail.com>
Sat, 27 Apr 2013 14:45:02 +0000 (09:45 -0500)
committersupahgreg <greg.parris@gmail.com>
Sat, 27 Apr 2013 14:45:02 +0000 (09:45 -0500)
js/functions.js

index 8442e1c9fc0f5039d3e6c1227df57805f15f7062..87c52b709678da7f0ca4b006169767f7e25aaf8e 100644 (file)
@@ -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;