Skip to content

Commit 8166b07

Browse files
evanlucastargos
authored andcommitted
doc: fix transform stream example
There was a missing callback in the Transform#flush example implementation. PR-URL: #40777 Reviewed-By: Robert Nagy <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Rich Trott <[email protected]>
1 parent 7f5931d commit 8166b07

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

doc/api/stream.md

+1
Original file line numberDiff line numberDiff line change
@@ -3230,6 +3230,7 @@ pipeline(
32303230
// Make sure is valid json.
32313231
JSON.parse(this.data);
32323232
this.push(this.data);
3233+
callback();
32333234
} catch (err) {
32343235
callback(err);
32353236
}

0 commit comments

Comments
 (0)