Skip to content

Commit

Permalink
remove wrong non-null assertion operator
Browse files Browse the repository at this point in the history
  • Loading branch information
rebornix committed Jun 26, 2020
1 parent 7bf8acc commit 6c235c7
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -463,7 +463,7 @@ export class NotebookEditorWidget extends Disposable implements INotebookEditor
}
}
}
} else if (this._notebookViewModel!.viewCells.length === 1 && this._notebookViewModel!.viewCells[0].cellKind === CellKind.Code) {
} else if (this._notebookViewModel && this._notebookViewModel.viewCells.length === 1 && this._notebookViewModel.viewCells[0].cellKind === CellKind.Code) {
// there is only one code cell in the document
const cell = this._notebookViewModel!.viewCells[0];
if (cell.getTextLength() === 0) {
Expand Down

0 comments on commit 6c235c7

Please sign in to comment.