Skip to content

Commit 0d722e1

Browse files
committed
lint
1 parent 2e47ca1 commit 0d722e1

File tree

1 file changed

+14
-15
lines changed

1 file changed

+14
-15
lines changed

packages/collaboration-extension/src/collaboration.ts

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -192,22 +192,20 @@ export const userEditorCursors: JupyterFrontEndPlugin<void> = {
192192
}
193193
};
194194

195-
export const notebookCellExecutor: JupyterFrontEndPlugin<INotebookCellExecutor> = {
196-
id: '@jupyter/collaboration-extension:notebook-cell-executor',
197-
description:
198-
'Add notebook cell executor that uses REST API instead of kernel protocol over WebSocket.',
199-
autoStart: true,
200-
provides: INotebookCellExecutor,
201-
activate: (
202-
app: JupyterFrontEnd
203-
): INotebookCellExecutor => {
204-
if (PageConfig.getOption('serverSideExecution') === 'true') {
205-
return Object.freeze({ runCell: runCellServerSide });
195+
export const notebookCellExecutor: JupyterFrontEndPlugin<INotebookCellExecutor> =
196+
{
197+
id: '@jupyter/collaboration-extension:notebook-cell-executor',
198+
description:
199+
'Add notebook cell executor that uses REST API instead of kernel protocol over WebSocket.',
200+
autoStart: true,
201+
provides: INotebookCellExecutor,
202+
activate: (app: JupyterFrontEnd): INotebookCellExecutor => {
203+
if (PageConfig.getOption('serverSideExecution') === 'true') {
204+
return Object.freeze({ runCell: runCellServerSide });
205+
}
206+
return Object.freeze({ runCell });
206207
}
207-
return Object.freeze({ runCell });
208-
}
209-
};
210-
208+
};
211209

212210
async function runCellServerSide({
213211
cell,
@@ -246,6 +244,7 @@ async function runCellServerSide({
246244
} catch (error: any) {
247245
throw new ServerConnection.NetworkError(error);
248246
}
247+
break;
249248
default:
250249
break;
251250
}

0 commit comments

Comments
 (0)