Commit 66f0d2d 1 parent 9098c4b commit 66f0d2d Copy full SHA for 66f0d2d
File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -273,7 +273,7 @@ func (u *Unpackerr) updateHistory(item string) {
273
273
}
274
274
275
275
// 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 {
277
277
if idx == 0 {
278
278
u .History .Items [0 ] = item
279
279
} else {
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ func (u *Unpackerr) updateHistory(item string) {
26
26
27
27
u .History .Items [0 ] = item
28
28
// 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 {
30
30
u .History .Items [idx ] = u .History .Items [idx - 1 ]
31
31
}
32
32
}
You can’t perform that action at this time.
0 commit comments