From fae54cc896f3007d38069c56a8ed24dfca828ec3 Mon Sep 17 00:00:00 2001 From: acatchpole Date: Wed, 12 Jun 2024 16:27:00 -0700 Subject: [PATCH] lint fixes --- .../projects/admin-nrpti/src/app/records/records-resolver.ts | 5 +---- .../public-nrpti/src/app/records/utils/record-utils.ts | 5 ++--- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/angular/projects/admin-nrpti/src/app/records/records-resolver.ts b/angular/projects/admin-nrpti/src/app/records/records-resolver.ts index c38248758..f7eae2b86 100644 --- a/angular/projects/admin-nrpti/src/app/records/records-resolver.ts +++ b/angular/projects/admin-nrpti/src/app/records/records-resolver.ts @@ -7,10 +7,7 @@ import { EpicProjectIds, SchemaLists } from '../../../../common/src/app/utils/re @Injectable() export class RecordsResolver implements Resolve> { - constructor( - private factoryService: FactoryService, - private tableTemplateUtils: TableTemplateUtils - ) {} + constructor(private factoryService: FactoryService, private tableTemplateUtils: TableTemplateUtils) {} resolve(route: ActivatedRouteSnapshot): Observable { const params = { ...route.params }; diff --git a/angular/projects/public-nrpti/src/app/records/utils/record-utils.ts b/angular/projects/public-nrpti/src/app/records/utils/record-utils.ts index 1b80fffa7..017b359eb 100644 --- a/angular/projects/public-nrpti/src/app/records/utils/record-utils.ts +++ b/angular/projects/public-nrpti/src/app/records/utils/record-utils.ts @@ -152,9 +152,9 @@ export class RecordUtils { const legislation = Array.isArray(row['legislation']) ? row['legislation'][0] : row['legislation']; if (legislation) { - if(legislation['act'] && legislation['act'].startsWith("ACT_")){ + if (legislation['act'] && legislation['act'].startsWith('ACT_')) { const actTitle = dataService.displayActTitleFull(legislation['act']); - if(actTitle){ + if (actTitle) { line.push(escapeCsvString(actTitle)); } } else { @@ -197,7 +197,6 @@ export class RecordUtils { download(`nrced-export-${moment().format('YYYY-MM-DD')}.csv`, output); } - } /**