diff options
author | 6543 <6543@obermui.de> | 2020-12-25 09:59:32 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-25 11:59:32 +0200 |
commit | a19447aed128ecadfcd938d6a80cd4951af1f4ce (patch) | |
tree | 6312bf946d601aab29731645a4777feeaea66036 /models/issue_xref.go | |
parent | 04ae0f2f3f4556c6d0b4adc5f2cffd0cc7d25151 (diff) | |
download | gitea-a19447aed128ecadfcd938d6a80cd4951af1f4ce.tar.gz gitea-a19447aed128ecadfcd938d6a80cd4951af1f4ce.zip |
migrate from com.* to alternatives (#14103)
* remove github.com/unknwon/com from models
* dont use "com.ToStr()"
* replace "com.ToStr" with "fmt.Sprint" where its easy to do
* more refactor
* fix test
* just "proxy" Copy func for now
* as per @lunny
Diffstat (limited to 'models/issue_xref.go')
-rw-r--r-- | models/issue_xref.go | 3 |
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) } // __________ .__ .__ __________ __ |