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:
Evan Lucas authored and Michaël Zasso committed 2021-11-21 16:07:34 +01:00
1 parent 7f5931d03f
commit 8166b07ddc
1 file changed
+1
+1
View File
@@ -3230,6 +3230,7 @@ pipeline(
// Make sure is valid json.
JSON.parse(this.data);
this.push(this.data);
callback();
} catch (err) {
callback(err);
}