Skip to content

Commit 66f0d2d

Browse files
committed
no int range
1 parent 9098c4b commit 66f0d2d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/unpackerr/tray.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ func (u *Unpackerr) updateHistory(item string) {
273273
}
274274

275275
// u.History.Items is a slice with a set (identical) length and capacity.
276-
for idx := range len(u.History.Items) {
276+
for idx := range u.History.Items {
277277
if idx == 0 {
278278
u.History.Items[0] = item
279279
} else {

pkg/unpackerr/tray_other.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ func (u *Unpackerr) updateHistory(item string) {
2626

2727
u.History.Items[0] = item
2828
// u.History.Items is a slice with a set (identical) length and capacity.
29-
for idx := range len(u.History.Items) {
29+
for idx := range u.History.Items {
3030
u.History.Items[idx] = u.History.Items[idx-1]
3131
}
3232
}

0 commit comments

Comments
 (0)