Fix lint error

This commit is contained in:
Alessio 2024-08-31 23:06:54 -07:00
parent f554846355
commit 1f392f5240

View File

@ -421,7 +421,10 @@ func (p Profile) GetNotificationsForUser(u_id UserID, cursor int64) Feed {
// Get the user_ids list for each notification. Unlike tweet+retweet_ids, users are needed to render
// the notification properly.
for i := range notifications {
err = p.DB.Select(&notifications[i].UserIDs, `select user_id from notification_users where notification_id = ?`, notifications[i].ID)
err = p.DB.Select(&notifications[i].UserIDs,
`select user_id from notification_users where notification_id = ?`,
notifications[i].ID,
)
if err != nil {
panic(err)
}