aboutsummaryrefslogtreecommitdiffstats
path: root/models/issues/comment.go
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2023-07-05 05:41:32 +0200
committerGitHub <noreply@github.com>2023-07-04 23:41:32 -0400
commit24e64fe37225a315c74c00d1f5e4d024168feea6 (patch)
treec89664dca5a884d5fc0a322815ce3bc20247cf84 /models/issues/comment.go
parent4e310133f95ba8581c121a32596807721bdd6af9 (diff)
downloadgitea-24e64fe37225a315c74c00d1f5e4d024168feea6.tar.gz
gitea-24e64fe37225a315c74c00d1f5e4d024168feea6.zip
Replace `interface{}` with `any` (#25686) (#25687)
Same perl replacement as https://github.com/go-gitea/gitea/pull/25686 but for 1.20 to ease future backporting.
Diffstat (limited to 'models/issues/comment.go')
-rw-r--r--models/issues/comment.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/models/issues/comment.go b/models/issues/comment.go
index dbe4434ca7..303c23916b 100644
--- a/models/issues/comment.go
+++ b/models/issues/comment.go
@@ -1131,7 +1131,7 @@ func DeleteComment(ctx context.Context, comment *Comment) error {
}
if _, err := e.Table("action").
Where("comment_id = ?", comment.ID).
- Update(map[string]interface{}{
+ Update(map[string]any{
"is_deleted": true,
}); err != nil {
return err
@@ -1156,7 +1156,7 @@ func UpdateCommentsMigrationsByType(tp structs.GitServiceType, originalAuthorID
}),
)).
And("comment.original_author_id = ?", originalAuthorID).
- Update(map[string]interface{}{
+ Update(map[string]any{
"poster_id": posterID,
"original_author": "",
"original_author_id": 0,