fix init pattern

This commit is contained in:
danielqsj 2019-03-05 07:21:55 +08:00
parent 5cf1950ef8
commit ae7c1187bf

View File

@ -136,7 +136,7 @@ func verifyPodExists(response []byte, containerName string) (bool, error) {
}
func parseResource(resource interface{}) (*Resource, error) {
var labels = map[string]string{}
labels := map[string]string{}
resourceMap, ok := resource.(map[string]interface{})
if !ok {
return nil, fmt.Errorf("Resource entry is of type %s, expected map[string]interface{}", reflect.TypeOf(resource))