Selaa lähdekoodia

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

Blake Mizerany 1 vuosi sitten
vanhempi
commit
1c04951cac
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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