Skip to content

Commit

Permalink
remove redundant lastfm user session check
Browse files Browse the repository at this point in the history
  • Loading branch information
sentriz committed May 18, 2022
1 parent 50e2818 commit 668c334
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions scrobble/lastfm/lastfm.go
Expand Up @@ -246,10 +246,6 @@ func (s *Scrobbler) Scrobble(user *db.User, track *db.Track, stamp time.Time, su
return fmt.Errorf("get secret: %w", err)
}

// fetch user to get lastfm session
if user.LastFMSession == "" {
return fmt.Errorf("you don't have a last.fm session: %w", ErrLastFM)
}
params := url.Values{}
if submission {
params.Add("method", "track.Scrobble")
Expand Down

0 comments on commit 668c334

Please sign in to comment.