Fix lint issues

Bug: 1262257
Change-Id: I881d789c9f83cf983ba6e44f8a977c61e0e757d3
Reviewed-on: https://chromium-review.googlesource.com/c/infra/gerrit-plugins/chumpdetector/+/3259499
Auto-Submit: Josip Sokcevic <sokcevic@google.com>
Reviewed-by: Gavin Mak <gavinmak@google.com>
Commit-Queue: Gavin Mak <gavinmak@google.com>
diff --git a/web/tree-status.ts b/web/tree-status.ts
index 7da148b..33c57b2 100644
--- a/web/tree-status.ts
+++ b/web/tree-status.ts
@@ -54,19 +54,14 @@
 };
 
 export class TreeStatus {
-  private restApi: RestPluginApi;
-
-  private updateInterval: number;
-
-  private initialized = false;
+  private readonly restApi: RestPluginApi;
+  private readonly updateInterval: number;
 
   private config: Config | null = null;
-
   private elements: TreeStatusComponents[] = [];
-
-  private status: Status | null = null;
-
+  private initialized = false;
   private shouldFetchStatus = false;
+  private status: Status | null = null;
 
   constructor(restApi: RestPluginApi) {
     this.clear();
@@ -153,10 +148,10 @@
       return;
     }
     await this.fetchStatus();
-    this.elements.forEach(element => {
+    for (const element of this.elements) {
       element.status = this.status;
       element.config = this.config;
-    });
+    }
   }
 
   private async fetchStatus() {