Skip to content

Commit 3c53a25

Browse files
authored
Merge pull request #17 from able8/patch-1
Fix duplicated error handling
2 parents 310076d + de0bce8 commit 3c53a25

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

informer-dynamic-simple/main.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,6 @@ func deleteConfigMap(client dynamic.Interface, cm *unstructured.Unstructured) {
158158
if err != nil {
159159
panic(err.Error())
160160
}
161-
if err != nil {
162-
panic(err.Error())
163-
}
164161

165162
fmt.Printf("Deleted ConfigMap %s/%s\n", cm.GetNamespace(), cm.GetName())
166163
}

0 commit comments

Comments
 (0)