Merge pull request #109590 from twilight0620/mytest

code check modify
This commit is contained in:
Kubernetes Prow Robot 2022-10-14 13:13:05 -07:00 committed by GitHub
commit cf18b5098e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -405,8 +405,8 @@ func (s *SimpleStream) Close() error {
return nil
}
func (obj *SimpleStream) GetObjectKind() schema.ObjectKind { return schema.EmptyObjectKind }
func (obj *SimpleStream) DeepCopyObject() runtime.Object {
func (s *SimpleStream) GetObjectKind() schema.ObjectKind { return schema.EmptyObjectKind }
func (s *SimpleStream) DeepCopyObject() runtime.Object {
panic("SimpleStream does not support DeepCopy")
}

View File

@ -233,13 +233,13 @@ func (h postStartHookHealthz) Name() string {
return h.name
}
var hookNotFinished = errors.New("not finished")
var errHookNotFinished = errors.New("not finished")
func (h postStartHookHealthz) Check(req *http.Request) error {
select {
case <-h.done:
return nil
default:
return hookNotFinished
return errHookNotFinished
}
}