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
1 changed files with 1 additions and 3 deletions
|
@ -620,9 +620,7 @@ func (f *Fs) listDir(ctx context.Context, prefix string, filter api.SearchFilter
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if entry != nil {
|
|
||||||
entries = append(entries, entry)
|
entries = append(entries, entry)
|
||||||
}
|
|
||||||
return nil
|
return nil
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in a new issue