LP1929741 ng lint
authorBill Erickson <berickxx@gmail.com>
Tue, 22 Jun 2021 19:39:57 +0000 (15:39 -0400)
committerJane Sandberg <js7389@princeton.edu>
Sun, 2 Oct 2022 15:02:49 +0000 (08:02 -0700)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Signed-off-by: Jane Sandberg <js7389@princeton.edu>
Open-ILS/src/eg2/src/app/staff/acq/po/summary.component.ts

index 8d28763..ae8759d 100644 (file)
@@ -236,7 +236,7 @@ export class PoSummaryComponent implements OnInit {
 
         if (this.po().state() === 'received') { return; }
 
-        var invTypes = [];
+        const invTypes = [];
 
         // get the unique set of invoice item type IDs
         this.po().po_items().forEach(item => {
@@ -245,7 +245,7 @@ export class PoSummaryComponent implements OnInit {
             }
         });
 
-        if (invTypes.length == 0) { return; }
+        if (invTypes.length === 0) { return; }
 
         this.pcrud.search('aiit',
             {code: invTypes, blanket: 't'}, {limit: 1})