Skip to content

Commit 7174a58

Browse files
committed
chore(linter): fix linter issues for image and volume
Signed-off-by: Alexander Dahmen <[email protected]>
1 parent c652abe commit 7174a58

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

internal/cmd/image/list/list.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,8 @@ func outputResult(p *print.Printer, outputFormat string, items []iaas.Image) err
166166
default:
167167
table := tables.NewTable()
168168
table.SetHeader("ID", "NAME", "OS", "ARCHITECTURE", "DISTRIBUTION", "VERSION", "LABELS")
169-
for _, item := range items {
169+
for i := range items {
170+
item := items[i]
170171
var (
171172
architecture string = "n/a"
172173
os string = "n/a"

internal/cmd/volume/list/list.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,8 @@ func outputResult(p *print.Printer, outputFormat string, volumes []iaas.Volume)
167167
table := tables.NewTable()
168168
table.SetHeader("ID", "Name", "Status", "Server", "Availability Zone", "Size (GB)")
169169

170-
for _, volume := range volumes {
170+
for i := range volumes {
171+
volume := volumes[i]
171172
table.AddRow(
172173
utils.PtrString(volume.Id),
173174
utils.PtrString(volume.Name),

0 commit comments

Comments
 (0)