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:
parent
41d139b266
commit
ccebefd6d0
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user