Skip to content

Commit

Permalink
test(xo): Fix linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
vinsonchuong committed Apr 6, 2023
1 parent 56ed0a9 commit 24dd731
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/http/send-request.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,7 @@ export default async function (request) {

// eslint-disable-next-line unicorn/no-array-for-each
fetchResponse.headers.forEach((value, key) => {
if (headers[key]) {
headers[key] = `${headers[key]}, ${value}`
} else {
headers[key] = value
}
headers[key] = headers[key] ? `${headers[key]}, ${value}` : value
})

return {
Expand Down

0 comments on commit 24dd731

Please sign in to comment.