Skip to content

Commit

Permalink
Remove unused named return value
Browse files Browse the repository at this point in the history
Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
  • Loading branch information
davidegirardi and richvdh authored Feb 11, 2025
1 parent 5cb5334 commit fe5bdfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ func (c RejectionCondition) shouldReject(p *payload) *string {
return nil
}

func (c *config) matchesRejectionCondition(p *payload) (reason *string) {
func (c *config) matchesRejectionCondition(p *payload) *string {
for _, rc := range c.RejectionConditions {
reject := rc.shouldReject(p)
if reject != nil {
Expand Down

0 comments on commit fe5bdfa

Please sign in to comment.