Skip to content

Commit

Permalink
feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
dpnolte committed May 20, 2020
1 parent f596ae8 commit 047a3db
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/server.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -173,10 +173,8 @@ export async function serveFragment(
{ end: false }
);

let lastStream: NodeJS.ReadableStream = removeReactRootStream;
if (options.pipeStream) {
lastStream = options.pipeStream(removeReactRootStream);
}
const lastStream: NodeJS.ReadableStream = options.pipeStream ? options.pipeStream(removeReactRootStream) : removeReactRootStream;

lastStream.pipe(
res,
{ end: false }
Expand Down

0 comments on commit 047a3db

Please sign in to comment.