mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 15:25:57 +00:00
Fix NewNotFound method name in comments
This commit is contained in:
parent
7855d99bfd
commit
7df1d33204
@ -323,7 +323,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
Block a user