From 329d48e2be46260ee1dce930ace0be124c07181c Mon Sep 17 00:00:00 2001 From: Bradley Hilton Date: Wed, 1 Feb 2023 16:15:01 -0600 Subject: [PATCH] Use const instead of let for headers --- apps/meteor/app/apps/server/marketplace/appInstall.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/apps/meteor/app/apps/server/marketplace/appInstall.ts b/apps/meteor/app/apps/server/marketplace/appInstall.ts index ab59d2befc12..a18b8f57eae2 100644 --- a/apps/meteor/app/apps/server/marketplace/appInstall.ts +++ b/apps/meteor/app/apps/server/marketplace/appInstall.ts @@ -7,15 +7,11 @@ import { Info } from '../../../utils/server'; export type installAction = 'install' | 'update' | 'uninstall'; export async function notifyAppInstall(marketplaceBaseUrl: string, action: installAction, appInfo: IAppInfo): Promise { - let headers = { - Authorization: '', - }; + const headers: { Authorization?: string } = {}; try { const token = await getWorkspaceAccessToken(); - headers = { - Authorization: `Bearer ${token}`, - }; + headers.Authorization = `Bearer ${token}`; // eslint-disable-next-line no-empty } catch {}