Browse Source

Conform to JupterLab style conventions.

Evan Patterson 8 years ago
parent
commit
4f0a86ae96
1 changed files with 1 additions and 4 deletions
  1. 1 4
      src/notebook/notebook/actions.ts

+ 1 - 4
src/notebook/notebook/actions.ts

@@ -827,10 +827,7 @@ namespace Private {
     case 'code':
       if (kernel) {
         return (widget as CodeCellWidget).execute(kernel).then(reply => {
-          if (reply)
-            return reply.content.status === 'ok';
-          else
-            return true;
+          return reply ? reply.content.status === 'ok' : true;
         });
       }
       (widget.model as CodeCellModel).executionCount = null;