Browse Source

ran `jlpm run lint`, fixed complaints

hopefully this fixes the failure of the Linux Integrity CI
telamonian 5 years ago
parent
commit
c2db5bde6b

+ 2 - 2
packages/apputils/src/thememanager.ts

@@ -217,8 +217,8 @@ export class ThemeManager implements IThemeManager {
   /**
    * Toggle the `theme-scrollbbars` setting.
    */
-  toggleThemeScrollbars(): void {
-    this._settings.set(
+  toggleThemeScrollbars(): Promise<void> {
+    return this._settings.set(
       'theme-scrollbars',
       !this._settings.composite['theme-scrollbars']
     );

+ 11 - 6
packages/statusbar/src/defaults/kernelStatus.tsx

@@ -181,12 +181,17 @@ export namespace KernelStatus {
       const oldState = this._getAllState();
       const { newValue } = change;
       if (newValue !== null) {
-        newValue.getSpec().then(spec => {
-          // sync setting of status and display name
-          this._kernelStatus = newValue.status;
-          this._kernelName = spec.display_name;
-          this._triggerChange(oldState, this._getAllState());
-        });
+        newValue
+          .getSpec()
+          .then(spec => {
+            // sync setting of status and display name
+            this._kernelStatus = newValue.status;
+            this._kernelName = spec.display_name;
+            this._triggerChange(oldState, this._getAllState());
+          })
+          .catch(err => {
+            throw err;
+          });
       } else {
         this._kernelStatus = 'unknown';
         this._kernelName = 'unknown';