Explorar o código

x/model: remove superfluous r.Valid() check

Blake Mizerany hai 1 ano
pai
achega
1c04951cac
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      x/model/name.go

+ 1 - 1
x/model/name.go

@@ -259,7 +259,7 @@ func (r Name) String() string {
 // Complete reports whether the Name is fully qualified. That is it has a
 // domain, namespace, name, tag, and build.
 func (r Name) Complete() bool {
-	return r.Valid() && !slices.Contains(r.Parts(), "")
+	return !slices.Contains(r.Parts(), "")
 }
 
 // TODO(bmizerany): Compare