Skip to content

Commit b7ff413

Browse files
committed
fix linting errors
1 parent 07c7512 commit b7ff413

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

index.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -256,12 +256,12 @@ class API {
256256

257257
// Strip the headers, keep whitelist
258258
const strippedHeaders = Object.entries(response._headers).reduce((acc, [headerName, value]) => {
259-
if (!this._errorHeaderWhitelist.includes(headerName.toLowerCase())) return acc
259+
if (!this._errorHeaderWhitelist.includes(headerName.toLowerCase())) { return acc }
260260

261-
return {
262-
...acc,
263-
[headerName]: value
264-
}
261+
return Object.assign(
262+
acc,
263+
{ [headerName]: value }
264+
)
265265
}, {})
266266

267267
response._headers = strippedHeaders

0 commit comments

Comments
 (0)