diff options
Diffstat (limited to 'internal/route/repo/repo.go')
-rw-r--r-- | internal/route/repo/repo.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/route/repo/repo.go b/internal/route/repo/repo.go index b9f9f988..f19bd3df 100644 --- a/internal/route/repo/repo.go +++ b/internal/route/repo/repo.go @@ -86,7 +86,7 @@ func Create(c *context.Context) { c.Success(CREATE) } -func handleCreateError(c *context.Context, err error, name, tpl string, form interface{}) { +func handleCreateError(c *context.Context, err error, name, tpl string, form any) { switch { case db.IsErrReachLimitOfRepo(err): c.RenderWithErr(c.Tr("repo.form.reach_limit_of_creation", err.(db.ErrReachLimitOfRepo).Limit), tpl, form) |