Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
drevell committed Sep 5, 2023
1 parent bd5f12c commit 1793fff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions templates/model/test/test.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ type InputValue struct {

// UnmarshalYAML implements yaml.Unmarshaler.
func (i *InputValue) UnmarshalYAML(n *yaml.Node) error {
return model.UnmarshalPlain(n, i, &i.Pos)
return model.UnmarshalPlain(n, i, &i.Pos) //nolint:wrapcheck
}

func (i *InputValue) Validate() error {
Expand All @@ -58,7 +58,7 @@ type Test struct {

// UnmarshalYAML implements yaml.Unmarshaler.
func (i *Test) UnmarshalYAML(n *yaml.Node) error {
return model.UnmarshalPlain(n, i, &i.Pos)
return model.UnmarshalPlain(n, i, &i.Pos) //nolint:wrapcheck
}

// DecodeTest unmarshals the YAML Spec from r.
Expand Down
2 changes: 1 addition & 1 deletion templates/model/validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ func extraFields(n *yaml.Node, knownFields []string) error {
}

// Validator is any model struct that has a validate method. It's useful for
// "higher order" validation functions like "validate each entry in a list."
// "higher order" validation functions like "validate each entry in a list".
type Validator interface {
Validate() error
}
Expand Down

0 comments on commit 1793fff

Please sign in to comment.