From 9c287c72d64a20a46db079b96dfc101c99ec822c Mon Sep 17 00:00:00 2001 From: nielash Date: Sat, 18 May 2024 22:05:48 -0400 Subject: [PATCH] googlephotos: remove unnecessary nil check golangci-lint was complaining about this. `entry` can never be nil because itemToDirEntry never returns a nil interface value --- backend/googlephotos/googlephotos.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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 {