lint: fix lint issues
This commit is contained in:
parent
f0b5109689
commit
b49b889c61
|
@ -67,15 +67,13 @@ export class VisitorContext implements VisitorContextOptions, VisitorResult {
|
||||||
|
|
||||||
public mergeResult(other: VisitorResult, data: any = {}): this {
|
public mergeResult(other: VisitorResult, data: any = {}): this {
|
||||||
this.changeBuffer.push(...other.changes);
|
this.changeBuffer.push(...other.changes);
|
||||||
this.errorBuffer.push(...other.errors.map((err) => {
|
this.errorBuffer.push(...other.errors.map((err) => ({
|
||||||
return {
|
|
||||||
...err,
|
...err,
|
||||||
data: {
|
data: {
|
||||||
...err.data,
|
...err.data,
|
||||||
...data,
|
...data,
|
||||||
},
|
},
|
||||||
};
|
})));
|
||||||
}));
|
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue