summaryrefslogtreecommitdiffstats
path: root/models/issue_xref.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/issue_xref.go')
-rw-r--r--models/issue_xref.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/models/issue_xref.go b/models/issue_xref.go
index 104691fe93..7834b6ecc0 100644
--- a/models/issue_xref.go
+++ b/models/issue_xref.go
@@ -10,7 +10,6 @@ import (
"code.gitea.io/gitea/modules/log"
"code.gitea.io/gitea/modules/references"
- "github.com/unknwon/com"
"xorm.io/xorm"
)
@@ -324,7 +323,7 @@ func (comment *Comment) RefIssueIdent() string {
return ""
}
// FIXME: check this name for cross-repository references (#7901 if it gets merged)
- return "#" + com.ToStr(comment.RefIssue.Index)
+ return fmt.Sprintf("#%d", comment.RefIssue.Index)
}
// __________ .__ .__ __________ __