diff --git a/backend/googlephotos/googlephotos.go b/backend/googlephotos/googlephotos.go index ecb0f9c35..ebae7ebb2 100644 --- a/backend/googlephotos/googlephotos.go +++ b/backend/googlephotos/googlephotos.go @@ -620,9 +620,7 @@ func (f *Fs) listDir(ctx context.Context, prefix string, filter api.SearchFilter if err != nil { return err } - if entry != nil { - entries = append(entries, entry) - } + entries = append(entries, entry) return nil }) if err != nil {