Skip to content

Commit

Permalink
Remove redundant call
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 af51a8a commit 5cb5334
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 @@ -164,7 +164,7 @@ func (c *config) matchesRejectionCondition(p *payload) (reason *string) {
for _, rc := range c.RejectionConditions {
reject := rc.shouldReject(p)
if reject != nil {
return rc.shouldReject(p)
return reject
}
}
return nil
Expand Down

0 comments on commit 5cb5334

Please sign in to comment.