mirror of
https://github.com/restic/restic.git
synced 2024-12-27 10:17:58 +00:00
Go1.3: Fix range over channel
This commit is contained in:
parent
2c136381c2
commit
1954680c9e
1 changed files with 1 additions and 1 deletions
|
@ -371,7 +371,7 @@ func (s Server) Stats() (ServerStats, error) {
|
||||||
|
|
||||||
// Count returns the number of blobs of a given type in the backend.
|
// Count returns the number of blobs of a given type in the backend.
|
||||||
func (s Server) Count(t backend.Type) (n int) {
|
func (s Server) Count(t backend.Type) (n int) {
|
||||||
for range s.List(t, nil) {
|
for _ = range s.List(t, nil) {
|
||||||
n++
|
n++
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue