From 5f93d47be0d642ece1af4481eddb8b5bb4ec0059 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Fri, 18 May 2018 10:43:41 -0400 Subject: [PATCH] LP#1775466 ng-lint updates Signed-off-by: Bill Erickson --- Open-ILS/src/eg2/src/app/core/perm.service.ts | 2 +- Open-ILS/src/eg2/src/app/share/util/format.service.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Open-ILS/src/eg2/src/app/core/perm.service.ts b/Open-ILS/src/eg2/src/app/core/perm.service.ts index 8ecba5afa4..3ed9f13b3c 100644 --- a/Open-ILS/src/eg2/src/app/core/perm.service.ts +++ b/Open-ILS/src/eg2/src/app/core/perm.service.ts @@ -29,7 +29,7 @@ export class EgPermService { ).toPromise().then(resp => { const answer: HasPermAtResult = {}; permNames.forEach(perm => { - const orgs = []; + let orgs = []; resp[perm].forEach(oneOrg => { orgs = orgs.concat(this.org.descendants(oneOrg, asId)); }); diff --git a/Open-ILS/src/eg2/src/app/share/util/format.service.ts b/Open-ILS/src/eg2/src/app/share/util/format.service.ts index b3d9215283..7abe6568eb 100644 --- a/Open-ILS/src/eg2/src/app/share/util/format.service.ts +++ b/Open-ILS/src/eg2/src/app/share/util/format.service.ts @@ -62,7 +62,7 @@ export class EgFormatService { case 'timestamp': const date = new Date(value); - const fmt = this.dateFormat || 'shortDate'; + let fmt = this.dateFormat || 'shortDate'; if (params.datePlusTime) { fmt = this.dateTimeFormat || 'short'; } -- 2.11.0