Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
notifications-bot
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
archives
notifications-bot
Commits
e0471f92
Commit
e0471f92
authored
3 years ago
by
Jonah Husson
Browse files
Options
Downloads
Patches
Plain Diff
Fix len checking
parent
b719e64d
No related branches found
No related tags found
1 merge request
!32
Release
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
notifications/notifications.go
+1
-1
1 addition, 1 deletion
notifications/notifications.go
with
1 addition
and
1 deletion
notifications/notifications.go
+
1
−
1
View file @
e0471f92
...
...
@@ -189,7 +189,7 @@ func (nb *Impl) SendBatch(data map[int64][]*notifications.Data) ([]*notification
var
unsent
[]
*
notifications
.
Data
for
i
,
ilist
:=
range
data
{
var
overflow
,
toSend
[]
*
notifications
.
Data
if
len
(
data
)
>
nb
.
maxNotifications
{
if
len
(
ilist
)
>
nb
.
maxNotifications
{
overflow
=
ilist
[
nb
.
maxNotifications
:
]
toSend
=
ilist
[
:
nb
.
maxNotifications
]
}
else
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment