nixpkgs/pkgs/applications/networking/syncthing/fix-go-1.4-range.patch
2015-01-06 02:24:48 -06:00

15 lines
387 B
Diff

diff --git a/internal/model/queue_test.go b/internal/model/queue_test.go
index 3745664..96aaf38 100644
--- a/internal/model/queue_test.go
+++ b/internal/model/queue_test.go
@@ -191,7 +191,7 @@ func BenchmarkJobQueuePushPopDone10k(b *testing.B) {
for _, f := range files {
q.Push(f.Name)
}
- for range files {
+ for _ = range files {
n, _ := q.Pop()
q.Done(n)
}
--