summaryrefslogtreecommitdiffstats
path: root/routers/web/repo/setting/webhook.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/web/repo/setting/webhook.go')
-rw-r--r--routers/web/repo/setting/webhook.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/routers/web/repo/setting/webhook.go b/routers/web/repo/setting/webhook.go
index a1cedd9a31..d85d5c8b07 100644
--- a/routers/web/repo/setting/webhook.go
+++ b/routers/web/repo/setting/webhook.go
@@ -145,7 +145,7 @@ func WebhooksNew(ctx *context.Context) {
return
}
if hookType == "discord" {
- ctx.Data["DiscordHook"] = map[string]interface{}{
+ ctx.Data["DiscordHook"] = map[string]any{
"Username": "Gitea",
}
}
@@ -196,7 +196,7 @@ type webhookParams struct {
Secret string
HTTPMethod string
WebhookForm forms.WebhookForm
- Meta interface{}
+ Meta any
}
func createWebhook(ctx *context.Context, params webhookParams) {
@@ -729,7 +729,7 @@ func DeleteWebhook(ctx *context.Context) {
ctx.Flash.Success(ctx.Tr("repo.settings.webhook_deletion_success"))
}
- ctx.JSON(http.StatusOK, map[string]interface{}{
+ ctx.JSON(http.StatusOK, map[string]any{
"redirect": ctx.Repo.RepoLink + "/settings/hooks",
})
}