8000 Calling getData() to apply some internal state · lance/sdk-javascript@8b39902 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8b39902

Browse files
committed
Calling getData() to apply some internal state
Signed-off-by: Fabio José <fabiojose@gmail.com>
1 parent 215bc34 commit 8b39902

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/cloudevent.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ Cloudevent.prototype.format = function(){
2626
// Check the constraints
2727
this.spec.check();
2828

29+
// To run asData()
30+
this.getData();
31+
2932
// Then, format
3033
return this.formatter.format(this.spec.payload);
3134
};

0 commit comments

Comments
 (0)
0