Skip to content

Commit

Permalink
stream/shared: improve reducer readability
Browse files Browse the repository at this point in the history
Co-authored-by: jj <[email protected]>
Signed-off-by: Damir Modyarov <[email protected]>
  • Loading branch information
otomir23 and dumbmoron authored May 21, 2024
1 parent 6e8af30 commit 606eb62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/stream/shared.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ const serviceHeaders = {
export function getHeaders(service) {
// Converting all header values to strings
return Object.entries({ ...defaultHeaders, ...serviceHeaders[service] })
.reduce((p, c) => ({ ...p, [c[0]]: String(c[1]) }), {})
.reduce((p, [key, val]) => ({ ...p, [key]: String(val) }), {})
}

0 comments on commit 606eb62

Please sign in to comment.