Skip to content

Commit

Permalink
fix: linting
Browse files Browse the repository at this point in the history
  • Loading branch information
cmorten committed Jan 28, 2024
1 parent 4411199 commit 6b09cde
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions src/xhrSham.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,11 +153,11 @@ export class XMLHttpRequestSham {

for (headerName in headers) {
parsedHeaders[headerName.toLowerCase()] = parsedHeaders[
headerName.toLowerCase()
]
headerName.toLowerCase()
]
? [parsedHeaders[headerName.toLowerCase()], headers[headerName]].flat(
1
)
1,
)
: headers[headerName];
}

Expand Down Expand Up @@ -268,12 +268,11 @@ export class XMLHttpRequestSham {
return xhr.onreadystatechange();
} else {
try {
const body =
typeof options.requestBody === "object" &&
!(options.requestBody instanceof FormData) &&
options.requestBody !== null
? JSON.stringify(options.requestBody)
: options.requestBody;
const body = typeof options.requestBody === "object" &&
!(options.requestBody instanceof FormData) &&
options.requestBody !== null
? JSON.stringify(options.requestBody)
: options.requestBody;

// We set the fetch promise into a polyfill promise cache
// so that superdeno can await these promises before ending.
Expand Down

0 comments on commit 6b09cde

Please sign in to comment.