Skip to content

Commit 06ab001

Browse files
Mattia VianelliMattia Vianelli
authored andcommitted
DSC-2624 lint fix
1 parent 300cf99 commit 06ab001

2 files changed

Lines changed: 5 additions & 9 deletions

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ const routeServiceStub = {
204204
getQueryParamsWithPrefix: () => {
205205
return of(null);
206206
},
207-
setParameter: jasmine.createSpy('setParameter')
207+
setParameter: jasmine.createSpy('setParameter'),
208208
};
209209

210210
let searchConfigurationServiceStub;

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

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,6 @@ import {
1414
Output,
1515
PLATFORM_ID,
1616
} from '@angular/core';
17-
import { NavigationStart, Router } from '@angular/router';
18-
19-
import { BehaviorSubject, combineLatest, Observable, Subscription, of } from 'rxjs';
20-
import { distinctUntilChanged, filter, map, switchMap, tap } from 'rxjs/operators';
2117
import {
2218
NavigationStart,
2319
Router,
@@ -29,10 +25,10 @@ import {
2925
BehaviorSubject,
3026
combineLatest,
3127
Observable,
28+
of,
3229
Subscription,
3330
} from 'rxjs';
3431
import {
35-
debounceTime,
3632
distinctUntilChanged,
3733
filter,
3834
map,
@@ -529,12 +525,12 @@ export class SearchComponent implements OnDestroy, OnInit {
529525
const configuration$: Observable<string> = combineLatest([
530526
configurationParam$,
531527
configurationFromService$,
532-
of(this.configuration)
528+
of(this.configuration),
533529
]).pipe(
534530
map(([paramValue, serviceValue, inputValue]) =>
535-
hasValue(paramValue) ? paramValue : (hasValue(inputValue) ? inputValue : hasValue(serviceValue) ? serviceValue : 'default')
531+
hasValue(paramValue) ? paramValue : (hasValue(inputValue) ? inputValue : hasValue(serviceValue) ? serviceValue : 'default'),
536532
),
537-
distinctUntilChanged()
533+
distinctUntilChanged(),
538534
);
539535

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

0 commit comments

Comments
 (0)