소스 검색

cmd/stcli: Fix metalint ineffasign complaint

Jakob Borg 9 년 전
부모
커밋
920a83ec7a
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      cmd/stcli/utils.go

+ 1 - 1
cmd/stcli/utils.go

@@ -57,7 +57,7 @@ func prettyPrintJSON(json map[string]interface{}) {
 	}
 	sort.Strings(jsonKeys)
 	for _, k := range jsonKeys {
-		value := ""
+		var value string
 		rvalue := remap[k]
 		switch rvalue.(type) {
 		case int, int16, int32, int64, uint, uint16, uint32, uint64, float32, float64: