Skip to content

Commit

Permalink
Change to errors.New
Browse files Browse the repository at this point in the history
  • Loading branch information
bjee19 committed Nov 9, 2023
1 parent 79ca6ab commit ecf9e42
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func (HTTPNJSMatchValidator) ValidatePathInMatch(path string) error {

func (HTTPNJSMatchValidator) ValidateHeaderNameInMatch(name string) error {
if err := k8svalidation.IsHTTPHeaderName(name); err != nil {
return fmt.Errorf(err[0])
return errors.New(err[0])
}

return validateNJSHeaderPart(name)
Expand Down

0 comments on commit ecf9e42

Please sign in to comment.