Skip to content

Commit 32883e4

Browse files
authored
Merge pull request kubernetes#86238 from SataQiu/fix-staticcheck-20191213
Fix staticcheck failures of test/e2e/manifest
2 parents ded2ff3 + 95bf226 commit 32883e4

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

hack/.staticcheck_failures

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ test/e2e/apps
6565
test/e2e/autoscaling
6666
test/e2e/instrumentation/logging/stackdriver
6767
test/e2e/instrumentation/monitoring
68-
test/e2e/manifest
6968
test/images/agnhost/dns
7069
test/images/agnhost/inclusterclient
7170
test/images/agnhost/net/nat

test/e2e/manifest/manifest.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,9 @@ func DaemonSetFromManifest(fileName, ns string) (*appsv1.DaemonSet, error) {
166166
func RoleFromManifest(fileName, ns string) (*rbacv1.Role, error) {
167167
var role rbacv1.Role
168168
data, err := testfiles.Read(fileName)
169+
if err != nil {
170+
return nil, err
171+
}
169172

170173
json, err := utilyaml.ToJSON(data)
171174
if err != nil {

0 commit comments

Comments
 (0)