diff options
author | Chocobozzz <me@florianbigard.com> | 2020-02-10 15:14:40 +0100 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2020-02-10 16:39:28 +0100 |
commit | 3fa9efa0c72af60258a6b440de08f267b07f9339 (patch) | |
tree | fd297147dd4899b2cb4c2f9108fc7602fdb41a50 | |
parent | 25f659632b07ab160bdb2e33664daae6d04b8c60 (diff) | |
download | PeerTube-3fa9efa0c72af60258a6b440de08f267b07f9339.tar.gz PeerTube-3fa9efa0c72af60258a6b440de08f267b07f9339.tar.zst PeerTube-3fa9efa0c72af60258a6b440de08f267b07f9339.zip |
Lint components
-rw-r--r-- | client/src/app/core/routing/custom-reuse-strategy.ts | 4 | ||||
-rw-r--r-- | client/src/app/core/routing/preload-selected-modules-list.ts | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/client/src/app/core/routing/custom-reuse-strategy.ts b/client/src/app/core/routing/custom-reuse-strategy.ts index cbba82f1f..c0f9f04e0 100644 --- a/client/src/app/core/routing/custom-reuse-strategy.ts +++ b/client/src/app/core/routing/custom-reuse-strategy.ts | |||
@@ -1,5 +1,5 @@ | |||
1 | import { ActivatedRouteSnapshot, DetachedRouteHandle, RouteReuseStrategy } from '@angular/router' | 1 | import { ActivatedRouteSnapshot, DetachedRouteHandle, RouteReuseStrategy } from '@angular/router' |
2 | import { Injectable } from "@angular/core"; | 2 | import { Injectable } from '@angular/core' |
3 | 3 | ||
4 | @Injectable() | 4 | @Injectable() |
5 | export class CustomReuseStrategy implements RouteReuseStrategy { | 5 | export class CustomReuseStrategy implements RouteReuseStrategy { |
@@ -78,6 +78,6 @@ export class CustomReuseStrategy implements RouteReuseStrategy { | |||
78 | } | 78 | } |
79 | 79 | ||
80 | private isReuseEnabled (route: ActivatedRouteSnapshot) { | 80 | private isReuseEnabled (route: ActivatedRouteSnapshot) { |
81 | return route.data.reuse && route.data.reuse.enabled && route.queryParams['a-state'] | 81 | return route.data.reuse && route.data.reuse.enabled && route.queryParams[ 'a-state' ] |
82 | } | 82 | } |
83 | } | 83 | } |
diff --git a/client/src/app/core/routing/preload-selected-modules-list.ts b/client/src/app/core/routing/preload-selected-modules-list.ts index aa1c76516..64af68225 100644 --- a/client/src/app/core/routing/preload-selected-modules-list.ts +++ b/client/src/app/core/routing/preload-selected-modules-list.ts | |||
@@ -1,7 +1,7 @@ | |||
1 | import { Observable, timer as observableTimer, of as ofObservable } from 'rxjs' | 1 | import { Observable, of as ofObservable, timer as observableTimer } from 'rxjs' |
2 | import { switchMap } from 'rxjs/operators' | 2 | import { switchMap } from 'rxjs/operators' |
3 | import { PreloadingStrategy, Route } from '@angular/router' | 3 | import { PreloadingStrategy, Route } from '@angular/router' |
4 | import { Injectable } from "@angular/core"; | 4 | import { Injectable } from '@angular/core' |
5 | 5 | ||
6 | @Injectable() | 6 | @Injectable() |
7 | export class PreloadSelectedModulesList implements PreloadingStrategy { | 7 | export class PreloadSelectedModulesList implements PreloadingStrategy { |