sync: wip changes
This commit is contained in:
@@ -6,11 +6,11 @@ export class Environment {
|
||||
private variables: Record<string, string> = {}
|
||||
private aliases: Record<string, string> = {}
|
||||
|
||||
SetVariable(name: string, value: string | null): void {
|
||||
SetVariable(name: string, value: any | null): void {
|
||||
if (value === null) {
|
||||
// remove the variable if value is null
|
||||
delete this.variables[name]
|
||||
} else this.variables[name] = value
|
||||
} else this.variables[name] = String(value)
|
||||
}
|
||||
|
||||
GetVariable(name: string): string | null {
|
||||
|
||||
Reference in New Issue
Block a user