Fix listToChan passing nil objects to DeleteFile

This commit is contained in:
Nick Craig-Wood 2016-07-25 19:13:20 +01:00
parent 326dcf2470
commit ebb67c135e

View File

@ -991,7 +991,7 @@ func listToChan(list *Lister) ObjectsChan {
if dir == nil && obj == nil {
return
}
if o == nil {
if obj == nil {
continue
}
o <- obj