chore: Add eslint rule for no-shadow (#6658)
* chore: Add eslint rule for no-shadow * fix
This commit is contained in:
@@ -22,8 +22,8 @@ export class PublicEnvironmentRegister {
|
||||
|
||||
static registerEnv(env: Environment) {
|
||||
process.nextTick(() => {
|
||||
const vars: string[] = Reflect.getMetadata(key, env);
|
||||
(vars ?? []).forEach((key: string) => {
|
||||
const vars: string[] = Reflect.getMetadata(key, env) ?? [];
|
||||
vars.forEach((key: string) => {
|
||||
if (isUndefined(this.publicEnv[key])) {
|
||||
this.publicEnv[key] = env[key];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user