mirror of https://github.com/k3s-io/k3s
Merge pull request #10346 from jhadvig/comment_fix
Fix NewNotFound method name in commentspull/6/head
commit
db179e4cf4
|
@ -333,7 +333,7 @@ func NewGenericServerResponse(code int, verb, kind, name, serverMessage string,
|
|||
}}
|
||||
}
|
||||
|
||||
// IsNotFound returns true if the specified error was created by NewNotFoundErr.
|
||||
// IsNotFound returns true if the specified error was created by NewNotFound.
|
||||
func IsNotFound(err error) bool {
|
||||
return reasonForError(err) == api.StatusReasonNotFound
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue