Skip to content

Commit

Permalink
Fix gometalinter
Browse files Browse the repository at this point in the history
  • Loading branch information
manabu committed Oct 3, 2016
1 parent bdc8351 commit 29a61ce
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func main2(args []string) {
var etcgroupgidnamemap = map[int]string{}
// layer ID -> json
var jsonMap = map[string]string{}
var allJsonMap = map[string]string{}
var allJSONMap = map[string]string{}
var layerTarMap = map[string][]*tar.Header{}
var first = false
for _, history := range historyList {
Expand Down Expand Up @@ -106,7 +106,7 @@ func main2(args []string) {
if strings.HasSuffix(header.Name, "/json") {
var jsonstring = buf2.String()
//var imagestring = ""
allJsonMap[layerID] = jsonstring
allJSONMap[layerID] = jsonstring
if strings.Index(jsonstring, "\"Image\":\"\"") != -1 || !first {
jsonMap[layerID] = jsonstring
}
Expand Down Expand Up @@ -275,7 +275,7 @@ func main2(args []string) {
for _, savedCreatedBy := range createdByListMap[layerID] {
fmt.Println(layerID[:12] + " " + savedCreatedBy)
}
//fmt.Println(allJsonMap[layerID])
//fmt.Println(allJSONMap[layerID])

for _, layerTarHeader := range layerTarMap[layerID] {
var filename = layerTarHeader.Name
Expand Down

0 comments on commit 29a61ce

Please sign in to comment.