Selaa lähdekoodia

Address review comments

Steven Silvester 8 vuotta sitten
vanhempi
commit
8e5ad4798d
1 muutettua tiedostoa jossa 9 lisäystä ja 11 poistoa
  1. 9 11
      packages/apputils/src/clientsession.ts

+ 9 - 11
packages/apputils/src/clientsession.ts

@@ -1,6 +1,10 @@
 // Copyright (c) Jupyter Development Team.
 // Distributed under the terms of the Modified BSD License.
 
+import {
+  uuid
+} from '@jupyterlab/coreutils';
+
 import {
   Kernel, KernelMessage, Session, utils
 } from '@jupyterlab/services';
@@ -21,10 +25,6 @@ import {
   ISignal, Signal
 } from '@phosphor/signaling';
 
-import {
-  uuid
-} from '@jupyterlab/coreutils';
-
 import {
   showDialog, Dialog
 } from '.';
@@ -511,11 +511,8 @@ class ClientSession implements IClientSession {
       path: this._path,
       kernelName: model.name,
       kernelId: model.id
-    }).then(session => {
-      return this._handleNewSession(session);
-    }).catch(err => {
-      return this._handleSessionError(err);
-    });
+    }).then(session => this._handleNewSession(session))
+    .catch(err => this._handleSessionError(err));
   }
 
   /**
@@ -656,7 +653,8 @@ class ClientSession implements IClientSession {
 /**
  * A namespace for `ClientSession` statics.
  */
-export namespace ClientSession {
+export
+namespace ClientSession {
   /**
    * The options used to initialize a context.
    */
@@ -673,7 +671,7 @@ export namespace ClientSession {
     path?: string;
 
     /**
-     * The name of with the session.
+     * The name of the session.
      */
     name?: string;