Implemented changes suggested by Deepsource.io

Signed-off-by: AaronvDiepen <aaronvdiepen@gmail.com>
This commit is contained in:
AaronvDiepen
2022-03-17 11:57:58 +01:00
parent 9f8d2714f0
commit 99f9406a2d
11 changed files with 24 additions and 25 deletions
+1 -1
View File
@@ -259,7 +259,7 @@ async function updateBackstageReleaseVersion(repo, type) {
}
} else if (type === 'patch') {
if (preMode) {
throw new Error(`Unexpected pre mode ${preMode} on branch ${branchName}`);
throw new Error(`Unexpected pre mode ${preMode} on current branch`);
}
nextVersion = semver.inc(currentVersion, 'patch');
}