From f70b3cff11dbeda0d5b9bd6f5cd5270adbf2369c Mon Sep 17 00:00:00 2001 From: Jari Kolehmainen Date: Thu, 11 Feb 2021 08:28:59 +0200 Subject: [PATCH] cleanup Signed-off-by: Jari Kolehmainen --- src/renderer/api/kube-watch-api.ts | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/renderer/api/kube-watch-api.ts b/src/renderer/api/kube-watch-api.ts index d7f52a2130..f2f50193db 100644 --- a/src/renderer/api/kube-watch-api.ts +++ b/src/renderer/api/kube-watch-api.ts @@ -35,14 +35,6 @@ export class KubeWatchApi { contextReady = when(() => Boolean(this.context)); - constructor() { - this.init(); - } - - private async init() { - await this.contextReady; - } - isAllowedApi(api: KubeApi): boolean { return Boolean(this.context?.cluster.isAllowedResource(api.kind)); }