Skip to content

Commit

Permalink
remove redundant checking
Browse files Browse the repository at this point in the history
  • Loading branch information
Erki Märks committed Oct 3, 2023
1 parent 8753b96 commit ed1d32d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion constraints.go
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ func parseConstraint(c string) (*constraint, error) {
minorDirty := false
dirty := false

if (isX(m[3]) || m[3] == "") && len(m) > 8 && m[7] != "" && isX(strings.TrimPrefix(m[8], ".")) {
if isX(m[3]) && len(m) > 8 && m[7] != "" && isX(strings.TrimPrefix(m[8], ".")) {
ver = fmt.Sprintf("0.0.0-%s.0", strings.Split(m[7], ".")[0])
dirty = true
prereleaseDirty = true
Expand Down

0 comments on commit ed1d32d

Please sign in to comment.