Przeglądaj źródła

fix version marshalling

reid 2 lat temu
rodzic
commit
75094fba93
1 zmienionych plików z 0 dodań i 8 usunięć
  1. 0 8
      docker/docker.go

+ 0 - 8
docker/docker.go

@@ -258,14 +258,6 @@ func GetLatestContainerInfo(containerType string) (map[string]string, error) {
 	if err != nil {
 		return res, err
 	}
-	groundseg, ok := m["groundseg"].(map[string]interface{})
-	if !ok {
-		return nil, fmt.Errorf("groundseg is not a map")
-	}
-	channel, ok := groundseg[releaseChannel].(map[string]interface{})
-	if !ok {
-		return nil, fmt.Errorf("%s is not a map", releaseChannel)
-	}
 	containerData, ok := channel[containerType].(map[string]interface{})
 	if !ok {
 		return nil, fmt.Errorf("%s data is not a map", containerType)