Skip to content

Commit

Permalink
fixup! chore: add guard-for-in eslint rule
Browse files Browse the repository at this point in the history
  • Loading branch information
JKRhb committed Jul 10, 2024
1 parent 30d43b8 commit a9d2079
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/td-tools/src/td-parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -241,9 +241,9 @@ export function serializeTD(thing: Thing): string {
} else if (copy.properties != null) {
// add mandatory fields (if missing): observable, writeOnly, and readOnly
for (const prop of Object.values(copy.properties)) {
prop.readOnly ??= false;
prop.writeOnly ??= false;
prop.observable ??= false;
adjustBooleanField(prop, "readOnly")
adjustBooleanField(prop, "writeOnly")
adjustBooleanField(prop, "observable")
}
}

Expand Down

0 comments on commit a9d2079

Please sign in to comment.