Skip to content

Commit 95bf226

Browse files
committed
fix staticcheck failures of test/e2e/manifest
1 parent 7e01fe1 commit 95bf226

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
@@ -66,7 +66,6 @@ test/e2e/apps
6666
test/e2e/autoscaling
6767
test/e2e/instrumentation/logging/stackdriver
6868
test/e2e/instrumentation/monitoring
69-
test/e2e/manifest
7069
test/images/agnhost/dns
7170
test/images/agnhost/inclusterclient
7271
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)