Skip to content

Commit ed1d32d

Browse files
author
Erki Märks
committed
remove redundant checking
1 parent 8753b96 commit ed1d32d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

constraints.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ func parseConstraint(c string) (*constraint, error) {
257257
minorDirty := false
258258
dirty := false
259259

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

0 commit comments

Comments
 (0)