declare new errs inline if

This commit is contained in:
sentriz
2024-02-20 13:14:13 +00:00
parent 70ff70cdfa
commit c6cec8307a
3 changed files with 3 additions and 3 deletions

View File

@@ -253,7 +253,7 @@ func (p *Podcasts) RefreshPodcasts() error {
errs = append(errs, fmt.Errorf("refreshing podcast with url %q: %w", podcast.URL, err))
continue
}
if err = p.RefreshPodcast(podcast, feed.Items); err != nil {
if err := p.RefreshPodcast(podcast, feed.Items); err != nil {
errs = append(errs, fmt.Errorf("adding episodes: %w", err))
continue
}