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 <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
  • Loading branch information
evanlucas authored and danielleadams committed Jan 30, 2022
1 parent fc9868c commit b500904
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 b500904

Please sign in to comment.