Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
jmillerv committed Sep 23, 2023
1 parent 4379064 commit ee42d1b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions content/podcast.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,15 +114,14 @@ func (p *Podcast) Get() error { //nolint:cyclop,funlen // complexity of 11, igno
func (p *Podcast) Play() error {
log.Infof("streaming from %v ", p.URL)

if !p.Player.isPlaying {
if !p.Player.isPlaying { //nolint:nestif
log.WithField("episode", p.EpisodeGUID).Info("setting podcast played cache")

cacheData, cacheHit := cache.PodcastPlayedCache.Get(defaultPodcastCache)
if cacheHit {

_, ok := cacheData.(podcastCacheData)
if ok {
podcastCache = cacheData.(podcastCacheData)
podcastCache = cacheData.(podcastCacheData) //nolint:forcetypeassert

if p.EpisodeGUID != "" {
podcastCache.Guids = append(podcastCache.Guids, p.EpisodeGUID)
Expand All @@ -136,7 +135,6 @@ func (p *Podcast) Play() error {
}

err = p.Player.command.Start()

if err != nil {
return errors.Wrap(err, "podcast.Play::error starting podcast streamPlayer")
}
Expand Down

0 comments on commit ee42d1b

Please sign in to comment.