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/org/teams.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/org/teams.go')
-rw-r--r-- | internal/route/org/teams.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/route/org/teams.go b/internal/route/org/teams.go index 7f932f3f..b99b0a1b 100644 --- a/internal/route/org/teams.go +++ b/internal/route/org/teams.go @@ -91,7 +91,7 @@ func TeamsAction(c *context.Context) { c.Flash.Error(c.Tr("form.last_org_owner")) } else { log.Error("Action(%s): %v", c.Params(":action"), err) - c.JSONSuccess(map[string]interface{}{ + c.JSONSuccess(map[string]any{ "ok": false, "err": err.Error(), }) @@ -265,7 +265,7 @@ func DeleteTeam(c *context.Context) { c.Flash.Success(c.Tr("org.teams.delete_team_success")) } - c.JSONSuccess(map[string]interface{}{ + c.JSONSuccess(map[string]any{ "redirect": c.Org.OrgLink + "/teams", }) } |