Skip to content

Commit 16cde1e

Browse files
committed
allocating empty string array
1 parent 5bab88b commit 16cde1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ func listCmd() *cobra.Command {
193193
if onlyName {
194194
fmt.Fprintln(w, np.Name)
195195
} else {
196-
typeList := make([]string, len(np.Types))
196+
typeList := []string{}
197197
for k := range np.Types {
198198
typeList = append(typeList, k)
199199
}

0 commit comments

Comments
 (0)