We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88da506 commit 82f24beCopy full SHA for 82f24be
routers/api/v1/notify/repo.go
@@ -214,7 +214,7 @@ func ReadRepoNotifications(ctx *context.APIContext) {
214
targetStatus = models.NotificationStatusRead
215
}
216
217
- changed := make([]*structs.NotificationThread, len(nl))
+ changed := make([]*structs.NotificationThread, 0, len(nl))
218
219
for _, n := range nl {
220
notif, err := models.SetNotificationStatus(n.ID, ctx.User, targetStatus)
0 commit comments