1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
Jari Kolehmainen 2021-04-19 12:56:19 +03:00
parent a327e65e35
commit 3a98466b22

View File

@ -9,12 +9,12 @@ import logger from "./logger";
export class KubeconfigManager { export class KubeconfigManager {
protected configDir = app.getPath("temp"); protected configDir = app.getPath("temp");
protected tempFile: string; protected tempFile: string = null;
constructor(protected cluster: Cluster, protected contextHandler: ContextHandler, protected port: number) { } constructor(protected cluster: Cluster, protected contextHandler: ContextHandler, protected port: number) { }
async getPath() { async getPath() {
if (!this.tempFile) { if (!this.tempFile && this.tempFile !== undefined) {
await this.init(); await this.init();
} }