aboutsummaryrefslogtreecommitdiffstats
path: root/routers/api/packages/cran/cran.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/api/packages/cran/cran.go')
-rw-r--r--routers/api/packages/cran/cran.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/api/packages/cran/cran.go b/routers/api/packages/cran/cran.go
index 76de3b7879..0ef6eff88d 100644
--- a/routers/api/packages/cran/cran.go
+++ b/routers/api/packages/cran/cran.go
@@ -21,7 +21,7 @@ import (
packages_service "code.gitea.io/gitea/services/packages"
)
-func apiError(ctx *context.Context, status int, obj interface{}) {
+func apiError(ctx *context.Context, status int, obj any) {
helper.LogAndProcessError(ctx, status, obj, func(message string) {
ctx.PlainText(status, message)
})