From 7f7cefed58fa3f5e610f67054c573a8ffa32aa57 Mon Sep 17 00:00:00 2001 From: Yulong Ruan Date: Sun, 7 Apr 2024 15:34:39 +0800 Subject: [PATCH] fix linting Signed-off-by: Yulong Ruan --- src/plugins/workspace/public/plugin.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/plugins/workspace/public/plugin.ts b/src/plugins/workspace/public/plugin.ts index 3dfc148cef41..b27c4b3bdd4a 100644 --- a/src/plugins/workspace/public/plugin.ts +++ b/src/plugins/workspace/public/plugin.ts @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -import { BehaviorSubject, type Subscription } from 'rxjs'; +import { BehaviorSubject, Subscription } from 'rxjs'; import React from 'react'; import { i18n } from '@osd/i18n'; import { @@ -40,7 +40,7 @@ export class WorkspacePlugin implements Plugin<{}, {}, WorkspacePluginSetupDeps> private coreStart?: CoreStart; private currentWorkspaceSubscription?: Subscription; private currentWorkspaceIdSubscription?: Subscription; - private appUpdater$ = new BehaviorSubject(() => undefined) + private appUpdater$ = new BehaviorSubject(() => undefined); private _changeSavedObjectCurrentWorkspace() { if (this.coreStart) { return this.coreStart.workspaces.currentWorkspaceId$.subscribe((currentWorkspaceId) => { @@ -63,14 +63,14 @@ export class WorkspacePlugin implements Plugin<{}, {}, WorkspacePluginSetupDeps> if (currentWorkspace) { this.appUpdater$.next((app) => { if (isAppAccessibleInWorkspace(app, currentWorkspace)) { - return + return; } /** * Change the app to `inaccessible` if it is not configured in the workspace * If trying to access such app, an "Application Not Found" page will be displayed */ - return {status: AppStatus.inaccessible} - }) + return { status: AppStatus.inaccessible }; + }); } }); } @@ -78,7 +78,7 @@ export class WorkspacePlugin implements Plugin<{}, {}, WorkspacePluginSetupDeps> public async setup(core: CoreSetup, { savedObjectsManagement }: WorkspacePluginSetupDeps) { const workspaceClient = new WorkspaceClient(core.http, core.workspaces); await workspaceClient.init(); - core.application.registerAppUpdater(this.appUpdater$) + core.application.registerAppUpdater(this.appUpdater$); /** * Retrieve workspace id from url