Skip to content

Commit

Permalink
Add exception for gocyclo
Browse files Browse the repository at this point in the history
  • Loading branch information
davidegirardi committed Feb 4, 2025
1 parent d99aa70 commit ac073b0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ type RejectionCondition struct {
}

// shouldReject returns a rejection reason if the payload matches the condition, nil if the server should accept the rageshake
// gocyclo:ignore we need lots of checks because all fields are optional
func (c RejectionCondition) shouldReject(p *payload) (reason *string) {
defaultReason := "app or user text rejected"
if c.Reason != "" {
Expand Down

0 comments on commit ac073b0

Please sign in to comment.