From 326144f5c0c9a7bfd48bde24eed2116610e9352d Mon Sep 17 00:00:00 2001 From: sentriz Date: Sun, 17 Dec 2023 18:45:22 +0000 Subject: [PATCH] podcast var style --- podcast/podcast.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/podcast/podcast.go b/podcast/podcast.go index 00851e2..6822846 100644 --- a/podcast/podcast.go +++ b/podcast/podcast.go @@ -156,7 +156,7 @@ func (p *Podcasts) AddNewEpisodes(podcast *db.Podcast, items []*gofeed.Item) err Where("podcast_id=?", podcast.ID). Order("publish_date DESC"). First(&podcastEpisode).Error - itemFound := true + var itemFound = true if errors.Is(err, gorm.ErrRecordNotFound) { itemFound = false } else if err != nil {