@@ -24,7 +24,9 @@ interface IAcceleratorSelectorProps {
2424 */
2525function getAcceleratorsFromMetadata ( notebookPanel ?: NotebookPanel ) : string [ ] {
2626 const model = notebookPanel ?. model ;
27- if ( ! model ) return [ ] ;
27+ if ( ! model ) {
28+ return [ ] ;
29+ }
2830
2931 const saved = model . getMetadata ( 'gpu_accelerators' ) ;
3032 console . log ( '[GetMetadata] Raw value:' , saved ) ;
@@ -39,7 +41,9 @@ function saveAcceleratorsToMetadata(
3941 accelerators : string [ ]
4042) : void {
4143 const model = notebookPanel ?. model ;
42- if ( ! model ) return ;
44+ if ( ! model ) {
45+ return ;
46+ }
4347
4448 console . log ( '[SaveMetadata] Saving:' , accelerators ) ;
4549 if ( accelerators . length > 0 ) {
@@ -104,10 +108,14 @@ const AcceleratorSelector: React.FC<IAcceleratorSelectorProps> = ({
104108
105109 const loadSavedAccelerators = async ( ) => {
106110 // Check if we need to reload and get current kernel
107- if ( ! needsReloadRef . current ) return ;
111+ if ( ! needsReloadRef . current ) {
112+ return ;
113+ }
108114
109115 const currentKernel = sessionContext . session ?. kernel ;
110- if ( ! currentKernel ) return ;
116+ if ( ! currentKernel ) {
117+ return ;
118+ }
111119
112120 const kernelId = currentKernel . id ;
113121
@@ -293,7 +301,7 @@ const AcceleratorSelector: React.FC<IAcceleratorSelectorProps> = ({
293301 title : trans . __ ( `${ plugin . name } Installed` ) ,
294302 body : trans . __ (
295303 `${ plugin . name } has been installed.\n\n` +
296- ` The kernel will be restarted for changes to take effect.`
304+ ' The kernel will be restarted for changes to take effect.'
297305 ) ,
298306 buttons : [
299307 Dialog . cancelButton ( { label : trans . __ ( 'Cancel' ) } ) ,
@@ -321,7 +329,7 @@ const AcceleratorSelector: React.FC<IAcceleratorSelectorProps> = ({
321329 title : trans . __ ( `${ plugin . name } Removed` ) ,
322330 body : trans . __ (
323331 `${ plugin . name } has been removed.\n\n` +
324- ` The kernel will be restarted for changes to take effect.`
332+ ' The kernel will be restarted for changes to take effect.'
325333 ) ,
326334 buttons : [
327335 Dialog . cancelButton ( { label : trans . __ ( 'Cancel' ) } ) ,
0 commit comments