Skip to content

Commit 4ca2337

Browse files
committed
use IsEmpty
1 parent fe11bf8 commit 4ca2337

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

git/semv.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ func (v *Semv) PreRelease(name string) (*Semv, error) {
8686
}
8787

8888
similar := list.FindSimilar(v.data)
89-
if similar.String() != "0.0.0" {
90-
v.data = similar
89+
if similar.IsEmpty() == false {
90+
v.data = similar.data
9191
}
9292

9393
if len(v.data.Pre) > 0 {

0 commit comments

Comments
 (0)