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:
1 parent
41d139b266
commit
ccebefd6d0
1 file changed
+1
-1
@@ -32,7 +32,7 @@ export class KubeconfigManager {
|
||||
|
||||
getPath() {
|
||||
// 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();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user