A website inspired by Last.fm that will keep track of your listening statistics
lastfm music statistics
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

remove unnecessary if statement

oscar345 8564840d c1aff634

+1 -4
+1 -4
internal/repo/db/recording_scrobble.go
··· 107 107 database.Condition{SQL: "scrobble.user_id = ?", Ok: filter.UserID != 0, Value: filter.UserID}, 108 108 ) 109 109 110 - if len(wheres) > 0 { 111 - statement = fmt.Sprintf(statement, database.WhereSQL(wheres)) 112 - } 113 - 110 + statement = fmt.Sprintf(statement, database.WhereSQL(wheres)) 114 111 return database.QueryOne(ctx, repo.db, statement, args, func(r *sql.Rows) (int, error) { 115 112 var count int 116 113 if err := r.Scan(&count); err != nil {