diff options
author | Joe Chen <jc@unknwon.io> | 2023-02-02 21:25:25 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-02 21:25:25 +0800 |
commit | c53a1998c589a544b25d53f6e6fdf0f24a4df25b (patch) | |
tree | 1c3c9d693ba551eecfbc535be942e40b5acf9cf7 /internal/route/repo/repo.go | |
parent | 614382fec0ba05149785539ab93560d4d42c194d (diff) |
all: replace `interface{}` with `any` (#7330)
Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
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) |