Skip to content

Commit

Permalink
Truncate updates if greater than 200.
Browse files Browse the repository at this point in the history
  • Loading branch information
juliojimenez committed May 13, 2021
1 parent e2ed8b9 commit 7721eb4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
)

var (
version = "0.0.8"
version = "0.0.9"
verbose bool
trace bool
debug bool
Expand Down
2 changes: 1 addition & 1 deletion lib/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ func joinUpdates(updates ...[]Update) []Update {
joinedUpdate = append(joinedUpdate, update...)
}
if len(joinedUpdate) > 200 {
joinedUpdate = joinedUpdate[:199]
joinedUpdate = joinedUpdate[:200]
}
return joinedUpdate
}
Expand Down

0 comments on commit 7721eb4

Please sign in to comment.