From 6f4263dc7407e244e948a49ff6c352f741fb5d58 Mon Sep 17 00:00:00 2001 From: "Brian E. Granger" Date: Mon, 3 Mar 2014 16:03:06 -0800 Subject: [PATCH] Removing conditionals that are not needed. --- IPython/html/static/notebook/js/notebook.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/IPython/html/static/notebook/js/notebook.js b/IPython/html/static/notebook/js/notebook.js index c1e6f9bcb..f5c33f2ae 100644 --- a/IPython/html/static/notebook/js/notebook.js +++ b/IPython/html/static/notebook/js/notebook.js @@ -525,7 +525,6 @@ var IPython = (function (IPython) { * @param [cell] {Cell} Cell to enter command mode on. **/ Notebook.prototype.handle_command_mode = function (cell) { - if (cell === null) { return; } // TODO: do I really need this? if (this.mode !== 'command') { cell.command_mode(); // TODO: is this OK here? this.mode = 'command'; @@ -556,7 +555,6 @@ var IPython = (function (IPython) { * @param [cell] {Cell} Cell to enter edit mode on. **/ Notebook.prototype.handle_edit_mode = function (cell) { - if (cell === null) { return; } // TODO: do I really need this? if (this.mode !== 'edit') { cell.edit_mode(); this.mode = 'edit';