From 0f1c6c7ade5c199ad2805fb7538060df3f6963d4 Mon Sep 17 00:00:00 2001 From: Colin Eberhardt Date: Tue, 7 Mar 2023 20:06:16 +0000 Subject: [PATCH] chore: fixed linting issues! --- template/fetch.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/template/fetch.ts b/template/fetch.ts index a171c31..0144f4c 100644 --- a/template/fetch.ts +++ b/template/fetch.ts @@ -2,8 +2,8 @@ import { RequestParameters } from "./request"; import { Transport } from "../api/configuration"; const parseHeaders = (headers: Headers) => { - let res: Record = {}; - for (let [key, value] of headers.entries()) { + const res: Record = {}; + for (const [key, value] of headers.entries()) { res[key] = value; } return res;