Skip to content

Commit a20bd78

Browse files
committed
lint
1 parent 2e47ca1 commit a20bd78

File tree

1 file changed

+13
-15
lines changed

1 file changed

+13
-15
lines changed

packages/collaboration-extension/src/collaboration.ts

+13-15
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,

0 commit comments

Comments
 (0)