1
0
mirror of https://github.com/tw93/Mole.git synced 2026-03-22 20:15:07 +00:00

refactor: fix modernize lint issues (#539)

This commit is contained in:
Oleksandr Redko
2026-03-05 14:46:12 +02:00
committed by GitHub
parent fc006e32be
commit 603df79a01
7 changed files with 17 additions and 48 deletions

View File

@@ -70,7 +70,7 @@ func TestEntryHeap(t *testing.T) {
heap.Push(h, dirEntry{Name: "c", Size: 100})
// All have same size, heap property still holds.
for i := 0; i < 3; i++ {
for range 3 {
popped := heap.Pop(h).(dirEntry)
if popped.Size != 100 {
t.Errorf("Pop() size = %d, want 100", popped.Size)