Skip to content

Commit

Permalink
Merge pull request #454 from dongwenjuan/master
Browse files Browse the repository at this point in the history
fix the comments of LabelDependency in the type definition
  • Loading branch information
openshift-merge-robot committed Oct 6, 2020
2 parents ea65161 + 4d9bf1d commit cf543ba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/registry/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ type PackageDependency struct {
}

type LabelDependency struct {
// The version range of dependency in semver range format
// The Label name of dependency
Label string `json:"label" yaml:"label"`
}

Expand Down Expand Up @@ -234,7 +234,7 @@ type DeprecatedProperty struct {
}

type LabelProperty struct {
// The version range of dependency in semver range format
// The name of Label
Label string `json:"label" yaml:"label"`
}

Expand All @@ -253,7 +253,7 @@ func (gd *GVKDependency) Validate() []error {
return errs
}

// Validate will validate GVK dependency type and return error(s)
// Validate will validate Label dependency type and return error(s)
func (ld *LabelDependency) Validate() []error {
errs := []error{}
if *ld == (LabelDependency{}) {
Expand Down

0 comments on commit cf543ba

Please sign in to comment.