googlephotos: remove unnecessary nil check

golangci-lint was complaining about this. `entry` can never be nil because
itemToDirEntry never returns a nil interface value
This commit is contained in:
nielash 2024-05-18 22:05:48 -04:00 committed by Nick Craig-Wood
parent 862d5d6086
commit 9c287c72d6

View file

@ -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)
}
return nil
})
if err != nil {