Skip to content

Commit

Permalink
avoid non null assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
dai-shi committed Jan 1, 2024
1 parent 8bd80f3 commit 204a34e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/waku/src/lib/handlers/dev-worker-impl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const handleRender = async (mesg: MessageReq & { type: 'render' }) => {
searchParams: new URLSearchParams(rr.searchParamsString),
method: rr.method,
context: rr.context,
body: rr.stream!,
...(rr.stream ? { body: rr.stream } : {}),
contentType: rr.contentType,
...(rr.moduleIdCallback ? { moduleIdCallback: rr.moduleIdCallback } : {}),
isDev: true,
Expand Down

0 comments on commit 204a34e

Please sign in to comment.