From 866ee60b8b370cb58615c9d0aa7da60275c47a8d Mon Sep 17 00:00:00 2001 From: BrianMuenzenmeyer Date: Tue, 2 Jun 2020 14:37:53 -0500 Subject: [PATCH] chore: accurately name variable within inOldVersionBranch() --- packages/core/src/auto.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/core/src/auto.ts b/packages/core/src/auto.ts index fa3204a0d..e2bd6d367 100644 --- a/packages/core/src/auto.ts +++ b/packages/core/src/auto.ts @@ -721,14 +721,14 @@ export default class Auto { /** Determine if the repo is currently in a old-version branch */ inOldVersionBranch(): boolean { const branch = getCurrentBranch(); - const prereleaseBranchPrefix = this.config?.versionBranches as + const oldVersionBranchPrefix = this.config?.versionBranches as | string | undefined; return Boolean( - prereleaseBranchPrefix && + oldVersionBranchPrefix && branch && - new RegExp(`^${escapeRegExp(prereleaseBranchPrefix)}`).test(branch) + new RegExp(`^${escapeRegExp(oldVersionBranchPrefix)}`).test(branch) ); }