Skip to content

Commit 7fba4e5

Browse files
evanlucasdanielleadams
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 <ronagy@icloud.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
1 parent 00fd7d2 commit 7fba4e5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

doc/api/stream.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3142,6 +3142,7 @@ pipeline(
31423142
// Make sure is valid json.
31433143
JSON.parse(this.data);
31443144
this.push(this.data);
3145+
callback();
31453146
} catch (err) {
31463147
callback(err);
31473148
}

0 commit comments

Comments
 (0)