Skip to content

Commit

Permalink
lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
acatchpole committed Jun 12, 2024
1 parent f111e5b commit fae54cc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,7 @@ import { EpicProjectIds, SchemaLists } from '../../../../common/src/app/utils/re

@Injectable()
export class RecordsResolver implements Resolve<Observable<object>> {
constructor(
private factoryService: FactoryService,
private tableTemplateUtils: TableTemplateUtils
) {}
constructor(private factoryService: FactoryService, private tableTemplateUtils: TableTemplateUtils) {}

resolve(route: ActivatedRouteSnapshot): Observable<object> {
const params = { ...route.params };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -197,7 +197,6 @@ export class RecordUtils {

download(`nrced-export-${moment().format('YYYY-MM-DD')}.csv`, output);
}

}

/**
Expand Down

0 comments on commit fae54cc

Please sign in to comment.