From: Bill Erickson Date: Fri, 18 May 2018 14:43:41 +0000 (-0400) Subject: LP#1626157 ng-lint updates X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=77aa6af10ebdde038ddeb09aaf975c12207da72e;p=working%2FEvergreen.git LP#1626157 ng-lint updates Signed-off-by: Bill Erickson --- 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'; }