Return undefined if unlinked

Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
This commit is contained in:
Lauri Nevala committed 2021-03-22 13:12:34 +02:00
1 parent 41d139b266
commit ccebefd6d0
1 file changed
+1 -1
+1 -1
View File
@@ -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();
}