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/issue.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/issue.go')
-rw-r--r-- | internal/route/repo/issue.go | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/internal/route/repo/issue.go b/internal/route/repo/issue.go index f6a0d1b5..1fd4820e 100644 --- a/internal/route/repo/issue.go +++ b/internal/route/repo/issue.go @@ -719,7 +719,7 @@ func UpdateIssueTitle(c *context.Context) { return } - c.JSONSuccess(map[string]interface{}{ + c.JSONSuccess(map[string]any{ "title": issue.Title, }) } @@ -778,7 +778,7 @@ func UpdateIssueLabel(c *context.Context) { } } - c.JSONSuccess(map[string]interface{}{ + c.JSONSuccess(map[string]any{ "ok": true, }) } @@ -792,7 +792,7 @@ func UpdateIssueMilestone(c *context.Context) { oldMilestoneID := issue.MilestoneID milestoneID := c.QueryInt64("id") if oldMilestoneID == milestoneID { - c.JSONSuccess(map[string]interface{}{ + c.JSONSuccess(map[string]any{ "ok": true, }) return @@ -805,7 +805,7 @@ func UpdateIssueMilestone(c *context.Context) { return } - c.JSONSuccess(map[string]interface{}{ + c.JSONSuccess(map[string]any{ "ok": true, }) } @@ -818,7 +818,7 @@ func UpdateIssueAssignee(c *context.Context) { assigneeID := c.QueryInt64("id") if issue.AssigneeID == assigneeID { - c.JSONSuccess(map[string]interface{}{ + c.JSONSuccess(map[string]any{ "ok": true, }) return @@ -829,7 +829,7 @@ func UpdateIssueAssignee(c *context.Context) { return } - c.JSONSuccess(map[string]interface{}{ + c.JSONSuccess(map[string]any{ "ok": true, }) } @@ -943,7 +943,7 @@ func UpdateCommentContent(c *context.Context) { oldContent := comment.Content comment.Content = c.Query("content") if comment.Content == "" { - c.JSONSuccess(map[string]interface{}{ + c.JSONSuccess(map[string]any{ "content": "", }) return @@ -1062,7 +1062,7 @@ func DeleteLabel(c *context.Context) { c.Flash.Success(c.Tr("repo.issues.label_deletion_success")) } - c.JSONSuccess(map[string]interface{}{ + c.JSONSuccess(map[string]any{ "redirect": c.Repo.MakeURL("labels"), }) } @@ -1260,7 +1260,7 @@ func DeleteMilestone(c *context.Context) { c.Flash.Success(c.Tr("repo.milestones.deletion_success")) } - c.JSONSuccess(map[string]interface{}{ + c.JSONSuccess(map[string]any{ "redirect": c.Repo.MakeURL("milestones"), }) } |