Skip to content

Commit 17a81b5

Browse files
Mattia VianelliMattia Vianelli
authored andcommitted
DSC-2624 Lint fix
1 parent 8590f6d commit 17a81b5

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

src/app/shared/search/search.component.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ const routeServiceStub = {
205205
getQueryParamsWithPrefix: () => {
206206
return observableOf(null);
207207
},
208-
setParameter: jasmine.createSpy('setParameter')
208+
setParameter: jasmine.createSpy('setParameter'),
209209
};
210210

211211
let searchConfigurationServiceStub;

src/app/shared/search/search.component.ts

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,15 @@ import {
2121
} from '@angular/router';
2222
import { NgbTooltipModule } from '@ng-bootstrap/ng-bootstrap';
2323
import { TranslateModule } from '@ngx-translate/core';
24-
import { NavigationStart, Router } from '@angular/router';
25-
26-
import { BehaviorSubject, combineLatest, Observable, Subscription, of } from 'rxjs';
27-
import { distinctUntilChanged, filter, map, switchMap, tap } from 'rxjs/operators';
2824
import uniqueId from 'lodash/uniqueId';
2925
import {
3026
BehaviorSubject,
3127
combineLatest,
3228
Observable,
29+
of,
3330
Subscription,
3431
} from 'rxjs';
3532
import {
36-
debounceTime,
3733
distinctUntilChanged,
3834
filter,
3935
map,
@@ -532,12 +528,12 @@ export class SearchComponent implements OnDestroy, OnInit {
532528
const configuration$: Observable<string> = combineLatest([
533529
configurationParam$,
534530
configurationFromService$,
535-
of(this.configuration)
531+
of(this.configuration),
536532
]).pipe(
537533
map(([paramValue, serviceValue, inputValue]) =>
538-
hasValue(paramValue) ? paramValue : (hasValue(inputValue) ? inputValue : hasValue(serviceValue) ? serviceValue : 'default')
534+
hasValue(paramValue) ? paramValue : (hasValue(inputValue) ? inputValue : hasValue(serviceValue) ? serviceValue : 'default'),
539535
),
540-
distinctUntilChanged()
536+
distinctUntilChanged(),
541537
);
542538

543539
const searchSortOptions$: Observable<SortOptions[]> = combineLatest([configuration$, this.currentScope$]).pipe(

0 commit comments

Comments
 (0)