1
0
Fork 0
forked from forgejo/forgejo

Use MixedCase constant names

See https://github.com/golang/go/wiki/CodeReviewComments#mixed-caps
This commit is contained in:
Sandro Santilli 2016-11-07 16:37:32 +01:00
parent 5d430c9e68
commit 80eea77953
10 changed files with 113 additions and 113 deletions

View file

@ -383,7 +383,7 @@ func TestWebhook(ctx *context.Context) {
Pusher: apiUser,
Sender: apiUser,
}
if err := models.PrepareWebhooks(ctx.Repo.Repository, models.HOOK_EVENT_PUSH, p); err != nil {
if err := models.PrepareWebhooks(ctx.Repo.Repository, models.HookEventPush, p); err != nil {
ctx.Flash.Error("PrepareWebhooks: " + err.Error())
ctx.Status(500)
} else {