Skip to content

Commit

Permalink
doc: fix transform stream example
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
evanlucas authored and targos committed Nov 21, 2021
1 parent 7f5931d commit 8166b07
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions doc/api/stream.md
Original file line number Diff line number Diff line change
Expand Up @@ -3230,6 +3230,7 @@ pipeline(
// Make sure is valid json.
JSON.parse(this.data);
this.push(this.data);
callback();
} catch (err) {
callback(err);
}
Expand Down

0 comments on commit 8166b07

Please sign in to comment.