From 8166b07ddcd2126bbffb831251d74553e9df1146 Mon Sep 17 00:00:00 2001 From: Evan Lucas Date: Wed, 10 Nov 2021 10:42:17 -0600 Subject: [PATCH] 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 Reviewed-By: Luigi Pinca Reviewed-By: Rich Trott --- doc/api/stream.md | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/api/stream.md b/doc/api/stream.md index 91fe70555d0e46..f5be715cf1cd93 100644 --- a/doc/api/stream.md +++ b/doc/api/stream.md @@ -3230,6 +3230,7 @@ pipeline( // Make sure is valid json. JSON.parse(this.data); this.push(this.data); + callback(); } catch (err) { callback(err); }