@@ -31,7 +31,7 @@ async function displayNotification(
3131 error : KernelError | null ,
3232 lastCellOnly : boolean ,
3333 notificationMethods : string [ ] ,
34- sessionContext : ISessionContext | null ,
34+ sessionContext : ISessionContext | null
3535) : Promise < void > {
3636 const base = PageConfig . getBaseUrl ( ) ;
3737 const notificationPayload = {
@@ -60,10 +60,9 @@ async function displayNotification(
6060 if ( notificationMethods . includes ( 'browser' ) ) {
6161 new Notification ( title , notificationPayload ) ;
6262 }
63- if ( ( notificationMethods . includes ( 'ntfy' ) ) && ( sessionContext ) ) {
63+ if ( notificationMethods . includes ( 'ntfy' ) && sessionContext ) {
6464 await issueNtfyNotification ( title , notificationPayload , sessionContext ) ;
6565 }
66-
6766}
6867
6968/**
@@ -82,7 +81,7 @@ async function triggerNotification(
8281 error : KernelError | null ,
8382 lastCellOnly : boolean ,
8483 notificationMethods : string [ ] ,
85- sessionContext : ISessionContext | null ,
84+ sessionContext : ISessionContext | null
8685) {
8786 const cellEndTime = new Date ( ) ;
8887 const codeCellModel = cell . model as ICodeCellModel ;
@@ -125,7 +124,7 @@ async function triggerNotification(
125124 error ,
126125 lastCellOnly ,
127126 notificationMethods ,
128- sessionContext ,
127+ sessionContext
129128 ) ;
130129 }
131130 }
@@ -159,7 +158,7 @@ const extension: JupyterFrontEndPlugin<void> = {
159158 const manager = app . serviceManager ;
160159 const sessionContext = new SessionContext ( {
161160 sessionManager : manager . sessions as any ,
162- specsManager : manager . kernelspecs ,
161+ specsManager : manager . kernelspecs
163162 } ) ;
164163
165164 if ( settingRegistry ) {
@@ -174,7 +173,8 @@ const extension: JupyterFrontEndPlugin<void> = {
174173 . composite as boolean ;
175174 cellNumberType = setting . get ( 'cell_number_type' ) . composite as string ;
176175 lastCellOnly = setting . get ( 'last_cell_only' ) . composite as boolean ;
177- notificationMethods = setting . get ( 'notification_methods' ) . composite as string [ ] ;
176+ notificationMethods = setting . get ( 'notification_methods' )
177+ . composite as string [ ] ;
178178 } ;
179179 updateSettings ( ) ;
180180 setting . changed . connect ( updateSettings ) ;
@@ -206,7 +206,7 @@ const extension: JupyterFrontEndPlugin<void> = {
206206 error ,
207207 lastCellOnly ,
208208 notificationMethods ,
209- sessionContext ,
209+ sessionContext
210210 ) ;
211211 }
212212 } ) ;
@@ -228,7 +228,7 @@ const extension: JupyterFrontEndPlugin<void> = {
228228 null ,
229229 lastCellOnly ,
230230 notificationMethods ,
231- sessionContext ,
231+ sessionContext
232232 ) ;
233233 }
234234 } ) ;
0 commit comments