소스 검색

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

Blake Mizerany 1 년 전
부모
커밋
1c04951cac
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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