Roy Han 10 months ago
parent
commit
d63e1f5b34
1 changed files with 1 additions and 1 deletions
  1. 1 1
      cmd/cmd.go

+ 1 - 1
cmd/cmd.go

@@ -670,7 +670,7 @@ func ShowHandler(cmd *cobra.Command, args []string) error {
 		table.SetNoWhiteSpace(true)
 		table.SetNoWhiteSpace(true)
 		table.SetTablePadding("\t")
 		table.SetTablePadding("\t")
 		table.SetAutoWrapText(false)
 		table.SetAutoWrapText(false)
-		for i := 0; i < len(headers); i++ {
+		for i := range headers {
 			if data[i] != "" {
 			if data[i] != "" {
 				table.Append([]string{headers[i], data[i]})
 				table.Append([]string{headers[i], data[i]})
 			}
 			}