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

This commit is contained in:
Blake Mizerany 2024-04-05 21:05:30 -07:00
parent 95559adee3
commit 1c04951cac

View File

@ -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