LP#1775466 ng-lint updates
authorBill Erickson <berickxx@gmail.com>
Fri, 18 May 2018 14:43:41 +0000 (10:43 -0400)
committerBill Erickson <berickxx@gmail.com>
Wed, 6 Jun 2018 20:59:40 +0000 (16:59 -0400)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/eg2/src/app/core/perm.service.ts
Open-ILS/src/eg2/src/app/share/util/format.service.ts

index 8ecba5a..3ed9f13 100644 (file)
@@ -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));
                 });
index b3d9215..7abe656 100644 (file)
@@ -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';
                 }