1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Simplify if condition

Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
This commit is contained in:
Lauri Nevala 2021-03-22 17:37:00 +02:00
parent 3e6a2b2026
commit dbf3f47091

View File

@ -32,7 +32,7 @@ export class KubeconfigManager {
async getPath() {
// create proxy kubeconfig if it is removed
if ((this.tempFile || this.tempFile === "") && !(await fs.pathExists(this.tempFile))) {
if (this.tempFile !== undefined && !(await fs.pathExists(this.tempFile))) {
try {
this.tempFile = await this.createProxyKubeconfig();
} catch (err) {