podcast var style

This commit is contained in:
sentriz
2023-12-17 18:45:22 +00:00
parent 95ba32b401
commit 326144f5c0

View File

@@ -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 {