From e0eb666dbf415ad16826c647e9a986bb9722e76c Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Fri, 2 Mar 2018 17:01:58 +0000 Subject: [PATCH] fs/walk: fix new golint warning about unused variables in range --- fs/walk/walk.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/walk/walk.go b/fs/walk/walk.go index 2b4a46f0b..6faeff34e 100644 --- a/fs/walk/walk.go +++ b/fs/walk/walk.go @@ -103,7 +103,7 @@ func walk(f fs.Fs, path string, includeAll bool, maxLevel int, fn Func, listDir doClose.Do(func() { close(quit) go func() { - for _ = range in { + for range in { traversing.Done() } }()