From 1c04951cac5ab557c1c21600c65981f9aade9a9a Mon Sep 17 00:00:00 2001 From: Blake Mizerany Date: Fri, 5 Apr 2024 21:05:30 -0700 Subject: [PATCH] x/model: remove superfluous r.Valid() check --- x/model/name.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x/model/name.go b/x/model/name.go index 3b816d6e9..ff74668ca 100644 --- a/x/model/name.go +++ b/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