Skip to content

Commit

Permalink
Merge pull request #1271 from bmuenzenmeyer/master
Browse files Browse the repository at this point in the history
chore: accurately name variable within inOldVersionBranch()
  • Loading branch information
hipstersmoothie authored Jun 3, 2020
2 parents f37945b + 866ee60 commit 47d3b54
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 47d3b54

Please sign in to comment.