mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
55946: TSLint fixes
This commit is contained in:
@@ -25,7 +25,6 @@ export class CommunityPageComponent implements OnInit, OnDestroy {
|
||||
communityRD$: Observable<RemoteData<Community>>;
|
||||
logoRD$: Observable<RemoteData<Bitstream>>;
|
||||
|
||||
|
||||
private subs: Subscription[] = [];
|
||||
|
||||
constructor(
|
||||
@@ -42,14 +41,10 @@ export class CommunityPageComponent implements OnInit, OnDestroy {
|
||||
map((rd: RemoteData<Community>) => rd.payload),
|
||||
filter((community: Community) => hasValue(community)),
|
||||
mergeMap((community: Community) => community.logo));
|
||||
|
||||
|
||||
}
|
||||
|
||||
ngOnDestroy(): void {
|
||||
this.subs.filter((sub) => hasValue(sub)).forEach((sub) => sub.unsubscribe());
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
@@ -36,7 +36,6 @@ describe('ConfigService', () => {
|
||||
const scopedEndpoint = `${serviceEndpoint}/${scopeName}`;
|
||||
const searchEndpoint = `${serviceEndpoint}/${BROWSE}?uuid=${scopeID}`;
|
||||
|
||||
|
||||
function initTestService(): TestService {
|
||||
return new TestService(
|
||||
requestService,
|
||||
|
@@ -40,7 +40,7 @@ describe('IntegrationService', () => {
|
||||
|
||||
findOptions = new IntegrationSearchOptions(uuid, name, metadata);
|
||||
|
||||
function initTestService(): TestService {
|
||||
function initTestService(): TestService {
|
||||
return new TestService(
|
||||
requestService,
|
||||
halService
|
||||
|
@@ -6,5 +6,5 @@ import { Directive, Input } from '@angular/core';
|
||||
selector: '[queryParams]',
|
||||
})
|
||||
export class QueryParamsDirectiveStub {
|
||||
@Input('queryParams') queryParams: any;
|
||||
@Input() queryParams: any;
|
||||
}
|
||||
|
@@ -41,4 +41,4 @@ export function spyOnOperator(obj: any, prop: string): any {
|
||||
});
|
||||
|
||||
return spyOn(obj, prop);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user