summaryrefslogtreecommitdiffstats
path: root/models/issue_comment.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/issue_comment.go')
-rw-r--r--models/issue_comment.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/models/issue_comment.go b/models/issue_comment.go
index 7bcea40b93..a5cb91ac75 100644
--- a/models/issue_comment.go
+++ b/models/issue_comment.go
@@ -22,7 +22,6 @@ import (
"code.gitea.io/gitea/modules/structs"
"code.gitea.io/gitea/modules/timeutil"
- "github.com/unknwon/com"
"xorm.io/builder"
"xorm.io/xorm"
)
@@ -367,7 +366,7 @@ func (c *Comment) HashTag() string {
// EventTag returns unique event hash tag for comment.
func (c *Comment) EventTag() string {
- return "event-" + com.ToStr(c.ID)
+ return fmt.Sprintf("event-%d", c.ID)
}
// LoadLabel if comment.Type is CommentTypeLabel, then load Label