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

Return undefined if unlinked

Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
This commit is contained in:
Lauri Nevala 2021-03-22 13:12:34 +02:00
parent 41d139b266
commit ccebefd6d0

View File

@ -32,7 +32,7 @@ export class KubeconfigManager {
getPath() { getPath() {
// create proxy kubeconfig if it is removed // create proxy kubeconfig if it is removed
if (!this.tempFile || !fs.pathExistsSync(this.tempFile)) { if (this.tempFile && !fs.pathExistsSync(this.tempFile)) {
this.tempFile = this.createProxyKubeconfig(); this.tempFile = this.createProxyKubeconfig();
} }