mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-05-28 04:04:39 -04:00
Fix NewNotFound method name in comments
This commit is contained in:
parent
7855d99bfd
commit
7df1d33204
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue