mirror of
https://github.com/jupyter/notebook.git
synced 2025-03-13 13:17:50 +08:00
Simplify get_msg_cell function of notebook.js
This commit is contained in:
parent
13694d04c3
commit
5ed3a0ebc5
@ -308,10 +308,7 @@ var IPython = (function (IPython) {
|
||||
* @return {Cell} Cell or null if no cell was found.
|
||||
*/
|
||||
Notebook.prototype.get_msg_cell = function (msg_id) {
|
||||
if (IPython.CodeCell.msg_cells[msg_id] !== undefined) {
|
||||
return IPython.CodeCell.msg_cells[msg_id];
|
||||
}
|
||||
return null;
|
||||
return IPython.CodeCell.msg_cells[msg_id] || null;
|
||||
};
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user