From 3a98466b227ee3f110f59739c636bc72e99e8bfa Mon Sep 17 00:00:00 2001 From: Jari Kolehmainen Date: Mon, 19 Apr 2021 12:56:19 +0300 Subject: [PATCH] fix Signed-off-by: Jari Kolehmainen --- src/main/kubeconfig-manager.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/kubeconfig-manager.ts b/src/main/kubeconfig-manager.ts index d43a8105d2..5be892fc81 100644 --- a/src/main/kubeconfig-manager.ts +++ b/src/main/kubeconfig-manager.ts @@ -9,12 +9,12 @@ import logger from "./logger"; export class KubeconfigManager { protected configDir = app.getPath("temp"); - protected tempFile: string; + protected tempFile: string = null; constructor(protected cluster: Cluster, protected contextHandler: ContextHandler, protected port: number) { } async getPath() { - if (!this.tempFile) { + if (!this.tempFile && this.tempFile !== undefined) { await this.init(); }