mirror of
https://github.com/rclone/rclone.git
synced 2024-11-22 00:13:49 +01:00
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:
parent
862d5d6086
commit
9c287c72d6
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user