From 46a01e40c6cf2fd11c1cbf1b92d93296fd1140bc Mon Sep 17 00:00:00 2001 From: Florent POITTEVIN <poittevin.florent@gmail.com> Date: Tue, 14 Apr 2020 09:07:24 +0200 Subject: [PATCH] fix: lint errors --- src/app/app-routing.module.ts | 4 +--- src/app/stores/app.state.ts | 22 ++++++++++------------ 2 files changed, 11 insertions(+), 15 deletions(-) diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts index c46a7fc9a..24208f4d8 100644 --- a/src/app/app-routing.module.ts +++ b/src/app/app-routing.module.ts @@ -11,8 +11,6 @@ import { TRANSLATE, } from "solidify-frontend"; -let code: string = undefined; - function getQueryParam(): string { // NEED FOR OAUTH 2 CODE QUERY PARAM const queryParam = window.location.href.split("?")[1]; @@ -114,4 +112,4 @@ const routes: DlcmRoutes = [ exports: [RouterModule], }) export class AppRoutingModule { -} \ No newline at end of file +} diff --git a/src/app/stores/app.state.ts b/src/app/stores/app.state.ts index 0872f918e..164b33186 100644 --- a/src/app/stores/app.state.ts +++ b/src/app/stores/app.state.ts @@ -447,18 +447,16 @@ export class AppState extends BasicState<AppStateModel> { // Logout client side this.oauthService.logOut(true); }), - mergeMap(() => { - return ctx.dispatch(new Navigate([RoutesEnum.homePage])); - }), - tap(() => { - ctx.patchState({ - ignorePreventLeavePopup: false, - }); - if (isTrue(environment.reloadAfterLogout)) { - window.location.reload(); - } - }), - ); + mergeMap(() => ctx.dispatch(new Navigate([RoutesEnum.homePage])), + tap(() => { + ctx.patchState({ + ignorePreventLeavePopup: false, + }); + if (isTrue(environment.reloadAfterLogout)) { + window.location.reload(); + } + }), + ); } @Action(AppAction.CancelPreventExit) -- GitLab