Skip to content

Commit

Permalink
check return value
Browse files Browse the repository at this point in the history
  • Loading branch information
huozhi committed Mar 10, 2022
1 parent 6cb26b9 commit a28c30f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/next/server/web/sandbox/readable-stream.ts
Expand Up @@ -68,7 +68,7 @@ class ReadableStream<T> {
}

const started = opts.start && opts.start(controller)
if (typeof started.then === 'function') {
if (started && typeof started.then === 'function') {
started.then(() => registerPull())
} else {
registerPull()
Expand Down

0 comments on commit a28c30f

Please sign in to comment.