Skip to content

Commit 02714f3

Browse files
committed
refactor: slight optimization
1 parent dffa7ce commit 02714f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

templates/deno/src/client.ts.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ export class Client {
6161
}
6262

6363
withoutHeader(key: string, headers: Payload): Payload {
64-
return Object.keys(headers).reduce((acc: Payload, cv) => {
65-
if (cv == 'content-type') return acc;
64+
return Object.keys(headers).reduce((acc: Payload, cv: string) => {
65+
if (cv === 'content-type') return acc;
6666
acc[cv] = headers[cv];
6767
return acc;
6868
}, {})

0 commit comments

Comments
 (0)