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 return nil
} }
func (obj *SimpleStream) GetObjectKind() schema.ObjectKind { return schema.EmptyObjectKind } func (s *SimpleStream) GetObjectKind() schema.ObjectKind { return schema.EmptyObjectKind }
func (obj *SimpleStream) DeepCopyObject() runtime.Object { func (s *SimpleStream) DeepCopyObject() runtime.Object {
panic("SimpleStream does not support DeepCopy") panic("SimpleStream does not support DeepCopy")
} }

View File

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