Skip to content

Commit

Permalink
fix: type
Browse files Browse the repository at this point in the history
  • Loading branch information
95th committed Jul 16, 2022
1 parent 473b740 commit 28c2f36
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/mockServiceWorker.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,9 @@ async function handleRequest(event, requestId) {
;(async function () {
const clonedResponse = response.clone()
const body =
clonedResponse.body == null ? null : await clonedResponse.arrayBuffer()
clonedResponse.body === null
? undefined
: await clonedResponse.arrayBuffer()
const message = {
type: 'RESPONSE',
payload: {
Expand Down

0 comments on commit 28c2f36

Please sign in to comment.