Skip to content

Commit

Permalink
fix linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremydaly committed Oct 29, 2019
1 parent 07c7512 commit b7ff413
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -256,12 +256,12 @@ class API {

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

return {
...acc,
[headerName]: value
}
return Object.assign(
acc,
{ [headerName]: value }
)
}, {})

response._headers = strippedHeaders
Expand Down

0 comments on commit b7ff413

Please sign in to comment.