Skip to content

Commit 83c5ef6

Browse files
committed
chore: use the helper
1 parent 721588e commit 83c5ef6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/releaser.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ func WithPrereleaseIncrement() ReleaserMod {
112112
return func(r *Releaser) {
113113

114114
// if a pre string already exists
115-
if len(r.v.preString) > 0 {
115+
if r.HasPrerelease() {
116116
preParts := strings.Split(r.v.preString, ".")
117117
prePointer, _ := strconv.Atoi(preParts[1])
118118
prePointer += 1

0 commit comments

Comments
 (0)