Skip to content

Commit

Permalink
robot: minor refactor with min
Browse files Browse the repository at this point in the history
  • Loading branch information
zephyrtronium committed Mar 28, 2024
1 parent 4dcca40 commit 0c3ad51
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions robot.go
Original file line number Diff line number Diff line change
Expand Up @@ -218,10 +218,7 @@ func (robo *Robot) join(ctx context.Context, send chan<- *tmi.Message) {
}
burst := 20
for len(ls) > 0 {
l := ls
if len(l) > burst {
l = l[:burst]
}
l := ls[:min(burst, len(ls))]
ls = ls[len(l):]
msg := tmi.Message{
Command: "JOIN",
Expand Down

0 comments on commit 0c3ad51

Please sign in to comment.