mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
doc: fix transform stream example
There was a missing callback in the Transform#flush example implementation. PR-URL: https://github.com/nodejs/node/pull/40777 Reviewed-By: Robert Nagy <ronagy@icloud.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
This commit is contained in:
1 parent
7f5931d03f
commit
8166b07ddc
1 file changed
+1
@@ -3230,6 +3230,7 @@ pipeline(
|
||||
// Make sure is valid json.
|
||||
JSON.parse(this.data);
|
||||
this.push(this.data);
|
||||
callback();
|
||||
} catch (err) {
|
||||
callback(err);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user