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 danielleadams committed Feb 1, 2022
1 parent 00fd7d2 commit 7fba4e5
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 @@ -3142,6 +3142,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 7fba4e5

Please sign in to comment.