refactor: improve type safety and code style
Some checks failed
CI / build-and-test (push) Failing after 24m31s
Some checks failed
CI / build-and-test (push) Failing after 24m31s
This commit is contained in:
@@ -34,7 +34,7 @@ export class EnvBuilder implements IBuilder<Env> {
|
||||
|
||||
private params(): this {
|
||||
const tag = `<parameter name="{name}" value="{val}" />`;
|
||||
for (let p of this.src.params) {
|
||||
for (const p of this.src.params) {
|
||||
this.stack.push(this.ident);
|
||||
this.stack.push(tag
|
||||
.replace("{name}", p.name ?? "!ERR!")
|
||||
|
||||
@@ -11,7 +11,7 @@ export interface IBuilder<T> {
|
||||
|
||||
export class Builder {
|
||||
public static getEnv(env: Env): IBuilder<Env> {
|
||||
let b = new EnvBuilder();
|
||||
const b = new EnvBuilder();
|
||||
b.src = env;
|
||||
return b;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user