Skip to content

Commit

Permalink
fixes #785
Browse files Browse the repository at this point in the history
  • Loading branch information
erossignon committed May 19, 2020
1 parent 3ab7478 commit 60a65f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/node-opcua-factory/source/factories_baseobject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ function _exploreObject(self: BaseUAObject, field: StructuredTypeField, data: Ex
data.lines.push(padding + chalk.cyan(" { " + ("/*" + i + "*/")));

const data1 = {
lines: [],
lines: [] as string[],
padding: padding + " "
};
applyOnAllSchemaFields(element, _newFieldSchema, data1, _exploreObject, args);
Expand All @@ -303,7 +303,7 @@ function _exploreObject(self: BaseUAObject, field: StructuredTypeField, data: Ex
} else {

data.lines.push(fieldNameF + " " + fieldTypeF + ": {");
const data1 = { padding: padding + " ", lines: [] };
const data1 = { padding: padding + " ", lines: [] as string[] };
applyOnAllSchemaFields(value, _newFieldSchema, data1, _exploreObject, args);
data.lines = data.lines.concat(data1.lines);

Expand Down

0 comments on commit 60a65f2

Please sign in to comment.