mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
cleanup
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
parent
56a321f7cd
commit
41c92fae86
@ -10,7 +10,6 @@ import { Cluster, ClusterPreferences } from "./cluster"
|
||||
import { helmCli } from "./helm-cli"
|
||||
|
||||
export class ShellSession extends EventEmitter {
|
||||
static shellEnv: any
|
||||
static shellEnvs: Map<string, any> = new Map()
|
||||
|
||||
protected websocket: WebSocket
|
||||
@ -82,8 +81,7 @@ export class ShellSession extends EventEmitter {
|
||||
}
|
||||
|
||||
protected async getCachedShellEnv() {
|
||||
let env: any
|
||||
env = ShellSession.shellEnvs.get(this.clusterId)
|
||||
let env = ShellSession.shellEnvs.get(this.clusterId)
|
||||
if (!env) {
|
||||
env = await this.getShellEnv()
|
||||
ShellSession.shellEnvs.set(this.clusterId, env)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user