From d9652e86d4c2fb3a9bbe393fbd4885fcd18c7eb2 Mon Sep 17 00:00:00 2001 From: zhangxiaoyu-zidif Date: Wed, 31 May 2017 09:55:11 +0800 Subject: [PATCH] Delete meaningless err check --- pkg/api/validation/schema_test.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/pkg/api/validation/schema_test.go b/pkg/api/validation/schema_test.go index 44e100abd8d..22177ce45c2 100644 --- a/pkg/api/validation/schema_test.go +++ b/pkg/api/validation/schema_test.go @@ -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) {