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.
  • Loading branch information
evanlucas committed Nov 10, 2021
1 parent 79d6815 commit 4999119
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 4999119

Please sign in to comment.