mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 14:37:00 +00:00
Delete meaningless err check
This commit is contained in:
parent
da5edc11f3
commit
d9652e86d4
@ -38,10 +38,7 @@ import (
|
||||
|
||||
func readPod(filename string) ([]byte, error) {
|
||||
data, err := ioutil.ReadFile("testdata/" + api.Registry.GroupOrDie(api.GroupName).GroupVersion.Version + "/" + filename)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return data, nil
|
||||
return data, err
|
||||
}
|
||||
|
||||
func readSwaggerFile() ([]byte, error) {
|
||||
|
Loading…
Reference in New Issue
Block a user