Skip to content

Commit 6b09cde

Browse files
committed
fix: linting
1 parent 4411199 commit 6b09cde

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

src/xhrSham.js

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -153,11 +153,11 @@ export class XMLHttpRequestSham {
153153

154154
for (headerName in headers) {
155155
parsedHeaders[headerName.toLowerCase()] = parsedHeaders[
156-
headerName.toLowerCase()
157-
]
156+
headerName.toLowerCase()
157+
]
158158
? [parsedHeaders[headerName.toLowerCase()], headers[headerName]].flat(
159-
1
160-
)
159+
1,
160+
)
161161
: headers[headerName];
162162
}
163163

@@ -268,12 +268,11 @@ export class XMLHttpRequestSham {
268268
return xhr.onreadystatechange();
269269
} else {
270270
try {
271-
const body =
272-
typeof options.requestBody === "object" &&
273-
!(options.requestBody instanceof FormData) &&
274-
options.requestBody !== null
275-
? JSON.stringify(options.requestBody)
276-
: options.requestBody;
271+
const body = typeof options.requestBody === "object" &&
272+
!(options.requestBody instanceof FormData) &&
273+
options.requestBody !== null
274+
? JSON.stringify(options.requestBody)
275+
: options.requestBody;
277276

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

0 commit comments

Comments
 (0)