Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: remove unnecessary sprintf #287

Merged
merged 3 commits into from
Nov 3, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion internal/events/trigger/trigger_event.go
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,8 @@ https://dev.twitch.tv/docs/eventsub/handling-webhook-events#processing-an-event`

// Error checking for everything else
if reply.ResponseCode == 0 { // Zero will always be success
color.New().Add(color.FgGreen).Println(fmt.Sprintf(`✔ Forwarded for use in mock EventSub WebSocket server`))
fowardToEvtSubWS := `✔ Forwarded for use in mock EventSub WebSocket server`
SputNikPlop marked this conversation as resolved.
Show resolved Hide resolved
color.New().Add(color.FgGreen).Println(fowardToEvtSubWS)
} else {
color.New().Add(color.FgRed).Println(fmt.Sprintf(`✗ EventSub WebSocket server failed to process event: [%v] %v`, reply.DetailedInfo, reply.DetailedInfo))
}
Expand Down