Skip to content

Commit 01cc16e

Browse files
committed
fixup! refactor: remove now obsolete nullish coalescing
1 parent 7b385e4 commit 01cc16e

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

packages/binding-opcua/src/opcua-protocol-client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,7 @@ export class OPCUAProtocolClient implements ProtocolClient {
619619
for (let index = 0; index < outputArguments.length; index++) {
620620
const argument = outputArguments[index];
621621
const { name } = argument;
622-
const element = _variantToJSON(outputVariants[index], form.contentType);
622+
const element = _variantToJSON(outputVariants[index], form.contentType);
623623
body[name ?? "null"] = element;
624624
}
625625

packages/core/src/exposed-thing.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -409,11 +409,7 @@ export default class ExposedThing extends TD.Thing implements WoT.ExposedThing {
409409
const form = this.properties[propertyName]?.forms[options.formIndex] ?? {
410410
contentType: "application/json",
411411
};
412-
return ContentManager.valueToContent(
413-
result,
414-
this.properties[propertyName],
415-
form.contentType
416-
);
412+
return ContentManager.valueToContent(result, this.properties[propertyName], form.contentType);
417413
} else {
418414
throw new Error(`ExposedThing '${this.title}' has no readHandler for Property '${propertyName}'`);
419415
}

0 commit comments

Comments
 (0)