Skip to content

Commit

Permalink
fix: exit hook retry loop on success
Browse files Browse the repository at this point in the history
  • Loading branch information
plyr4 committed Sep 11, 2024
1 parent e0c2f7e commit 184fac9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions api/webhook/post.go
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,9 @@ func PostWebhook(c *gin.Context) {
h.SetError(retErr.Error())

return
} else {

Check failure on line 309 in api/webhook/post.go

View workflow job for this annotation

GitHub Actions / golangci

[golangci] api/webhook/post.go#L309

indent-error-flow: if block ends with a return statement, so drop this else and outdent its block (revive)
Raw output
api/webhook/post.go:309:10: indent-error-flow: if block ends with a return statement, so drop this else and outdent its block (revive)
		} else {
			// hook was created successfully
			break
		}
// hook was created successfully
break
}
}

Expand Down

0 comments on commit 184fac9

Please sign in to comment.