Skip to content

Commit

Permalink
chore: accurately name variable within inOldVersionBranch()
Browse files Browse the repository at this point in the history
  • Loading branch information
bmuenzenmeyer committed Jun 2, 2020
1 parent f37945b commit 866ee60
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/core/src/auto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
);
}

Expand Down

0 comments on commit 866ee60

Please sign in to comment.