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,