Ver código fonte

More cleanup in getnotebookcontent

Steven Silvester 9 anos atrás
pai
commit
3a16484585
1 arquivos alterados com 6 adições e 4 exclusões
  1. 6 4
      src/notebook/notebook/serialize.ts

+ 6 - 4
src/notebook/notebook/serialize.ts

@@ -140,10 +140,12 @@ function messageToModel(msg: IKernelMessage) {
  */
 export
 function getNotebookContent(nb: NotebookModel): NotebookContent {
-  let cells = getNotebookCells(nb);
-  let metadata = nb.metadata;
-  return { cells, metadata, nbformat: MAJOR_VERSION, 
-                   nbformat_minor: MINOR_VERSION };
+  return {
+    cells: getNotebookCells(nb),
+    metadata: nb.metadata, 
+    nbformat: MAJOR_VERSION, 
+    nbformat_minor: MINOR_VERSION 
+  };
 }