Fix problems found with ineffassign

This commit is contained in:
Nick Craig-Wood
2017-06-13 11:52:36 +01:00
parent 28fcc53e45
commit 740b3f6ae2
9 changed files with 19 additions and 16 deletions
+3
View File
@@ -139,6 +139,9 @@ func (t *test) cleanFs() error {
return err
}
dirs, err := fs.NewLister().SetLevel(1).Start(f, "").GetDirs()
if err != nil {
return err
}
for _, dir := range dirs {
if fstest.MatchTestRemote.MatchString(dir.Name) {
log.Printf("Purging %s%s", t.remote, dir.Name)