From 2096fc2fdbda91b2be61a0eec52671044c364352 Mon Sep 17 00:00:00 2001 From: William Lee <43682783+wlee221@users.noreply.github.com> Date: Thu, 1 Sep 2022 02:49:55 -0700 Subject: [PATCH] fix(npm-token-rotation): fix typo in variables.type equality check --- .../npm-token-rotation/src/lambda/utils/circleci-helper.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/credentials_rotators/npm-token-rotation/src/lambda/utils/circleci-helper.ts b/src/credentials_rotators/npm-token-rotation/src/lambda/utils/circleci-helper.ts index d7de513..1737a79 100644 --- a/src/credentials_rotators/npm-token-rotation/src/lambda/utils/circleci-helper.ts +++ b/src/credentials_rotators/npm-token-rotation/src/lambda/utils/circleci-helper.ts @@ -38,7 +38,7 @@ export const updateCircleCIEnvironmentVariables = async ( envName, envValue ); - } else if ((variables.type = "Environment")) { + } else if (variables.type === "Environment") { await updateCircleCIEnvironmentVariable( variables.slug, variables.projectName,