Skip to content

Commit

Permalink
fix #github buffer flush
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Gutekanst <[email protected]>
  • Loading branch information
emidoots committed Apr 7, 2024
1 parent 1f49a33 commit b145a34
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/wrench/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,7 @@ func (b *Bot) discordGitHubPushEvent(ev *github.PushEvent) error {
)
if len(out.String())+len(add) >= 4000 {
flush()

Check failure on line 263 in internal/wrench/http.go

View workflow job for this annotation

GitHub Actions / lint

Error return value is not checked (errcheck)
out.Reset()
}
fmt.Fprintf(&out, "%s", add)
}
Expand Down

0 comments on commit b145a34

Please sign in to comment.