From ebb67c135eea9c8859dc94c65ab24149387c8353 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Mon, 25 Jul 2016 19:13:20 +0100 Subject: [PATCH] Fix listToChan passing nil objects to DeleteFile --- fs/operations.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/operations.go b/fs/operations.go index 8ea58e8bd..ed49d587a 100644 --- a/fs/operations.go +++ b/fs/operations.go @@ -991,7 +991,7 @@ func listToChan(list *Lister) ObjectsChan { if dir == nil && obj == nil { return } - if o == nil { + if obj == nil { continue } o <- obj