Skip to content

Commit 113a5f8

Browse files
committed
[DSC-2059] Fix lint
1 parent 731683a commit 113a5f8

3 files changed

Lines changed: 4 additions & 7 deletions

File tree

src/app/shared/context-menu/export-item/export-item-menu.component.spec.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,7 @@ import {
1111
TranslateModule,
1212
} from '@ngx-translate/core';
1313
import { getTestScheduler } from 'jasmine-marbles';
14-
import {
15-
of as observableOf,
16-
of,
17-
} from 'rxjs';
14+
import { of as observableOf } from 'rxjs';
1815
import { TestScheduler } from 'rxjs/testing';
1916

2017
import { DSpaceObject } from '../../../core/shared/dspace-object.model';

src/app/shared/context-menu/export-item/export-item-menu.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
} from '@angular/core';
1010
import { NgbModal } from '@ng-bootstrap/ng-bootstrap';
1111
import { TranslateModule } from '@ngx-translate/core';
12-
import { BehaviorSubject } from 'rxjs/internal/BehaviorSubject';
12+
import { BehaviorSubject } from 'rxjs';
1313
import { take } from 'rxjs/operators';
1414

1515
import { ItemExportFormatMolteplicity } from '../../../core/itemexportformat/item-export-format.service';

src/app/shared/context-menu/request-correction/request-correction-menu.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ import {
2424
} from 'rxjs';
2525
import {
2626
catchError,
27+
switchMap,
2728
take,
2829
} from 'rxjs/operators';
2930

@@ -41,7 +42,6 @@ import {
4142
import { NotificationsService } from '../../notifications/notifications.service';
4243
import { ContextMenuEntryComponent } from '../context-menu-entry.component';
4344
import { ContextMenuEntryType } from '../context-menu-entry-type';
44-
import { switchMap } from 'rxjs/internal/operators/switchMap';
4545

4646
/**
4747
* This component renders a context menu option that provides the request a correction functionality.
@@ -136,7 +136,7 @@ export class RequestCorrectionMenuComponent extends ContextMenuEntryComponent im
136136
});
137137

138138
this.canCreateCorrection$ = this.notificationService.claimedProfile.pipe(
139-
switchMap(() => this.canCreateCorrection(false))
139+
switchMap(() => this.canCreateCorrection(false)),
140140
);
141141
}
142142

0 commit comments

Comments
 (0)