.storybook/public/mockServiceWorker.js
Function getResponse
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
async function getResponse(event, client, requestId) {
const { request } = event;
// Clone the request because it might've been already used
// (i.e. its body has been read and sent to the client).
Avoid too many return
statements within this function. Open
Open
return passthrough();
Avoid too many return
statements within this function. Open
Open
return passthrough();