Skip to content

Commit 1148fab

Browse files
committed
fixup! fix(core/interaction-output): allign value function implementation with spec
1 parent 9a78440 commit 1148fab

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

packages/core/src/interaction-output.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@ export class InteractionOutput implements WoT.InteractionOutput {
106106
this.dataUsed = true;
107107
this.buffer = bytes;
108108

109-
// call the contentToValue
110109
const json = ContentSerdes.get().contentToValue({ type: this.content.type, body: bytes }, this.schema);
111110

112111
// validate the schema
@@ -120,6 +119,6 @@ export class InteractionOutput implements WoT.InteractionOutput {
120119
}
121120

122121
this.#value = json;
123-
return this.#value as T;
122+
return json;
124123
}
125124
}

0 commit comments

Comments
 (0)