瀏覽代碼

fix version marshalling

reid 2 年之前
父節點
當前提交
75094fba93
共有 1 個文件被更改,包括 0 次插入8 次删除
  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)