Skip to content

Commit 68e8337

Browse files
committed
chore: fixed linter hints
1 parent 40591fd commit 68e8337

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

internal/cmd/beta/image/list/list.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ func outputResult(p *print.Printer, outputFormat string, items []iaas.Image) err
177177
os,
178178
distro,
179179
version,
180-
utils.JoinStringKeysPtr(item.Labels, ","))
180+
utils.JoinStringKeysPtr(*item.Labels, ","))
181181
}
182182
err := table.Display(p)
183183
if err != nil {

internal/pkg/utils/strings.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
func JoinStringKeys(m map[string]any, sep string) string {
1010
keys := make([]string, len(m))
1111
i := 0
12-
for k, _ := range m {
12+
for k := range m {
1313
keys[i] = k
1414
i++
1515
}
@@ -18,9 +18,9 @@ func JoinStringKeys(m map[string]any, sep string) string {
1818

1919
// JoinStringKeysPtr concatenates the string keys of a map pointer, each separatore by the
2020
// [sep] string.
21-
func JoinStringKeysPtr(m *map[string]any, sep string) string {
21+
func JoinStringKeysPtr(m map[string]any, sep string) string {
2222
if m == nil {
2323
return ""
2424
}
25-
return JoinStringKeys(*m, sep)
25+
return JoinStringKeys(m, sep)
2626
}

0 commit comments

Comments
 (0)