From eb4e6745981c93ed1d9c1bcd829594e7cb1419df Mon Sep 17 00:00:00 2001 From: Paul Ivanov Date: Thu, 27 Feb 2014 18:13:53 -0800 Subject: [PATCH] remove redundant checks in code --- IPython/html/static/tree/js/sessionlist.js | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/IPython/html/static/tree/js/sessionlist.js b/IPython/html/static/tree/js/sessionlist.js index 1b4a72978..dc1f9aa14 100644 --- a/IPython/html/static/tree/js/sessionlist.js +++ b/IPython/html/static/tree/js/sessionlist.js @@ -35,20 +35,13 @@ var IPython = (function (IPython) { SesssionList.prototype.sessions_loaded = function(data){ this.sessions = {}; var len = data.length; - if (len > 0) { - for (var i=0; i