Browse Source

Void promise.

Ian Rose 6 năm trước cách đây
mục cha
commit
600d3fbd00
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      packages/extensionmanager-extension/src/index.ts

+ 1 - 1
packages/extensionmanager-extension/src/index.ts

@@ -84,7 +84,7 @@ const plugin: JupyterFrontEndPlugin<void> = {
       label: 'Enable Extension Manager (experimental)',
       execute: () => {
         if (registry) {
-          registry.set(plugin.id, 'enabled', !enabled);
+          void registry.set(plugin.id, 'enabled', !enabled);
         }
       },
       isToggled: () => enabled,