summaryrefslogtreecommitdiffstats
path: root/modules/markdown/markdown.go
diff options
context:
space:
mode:
authorBo-Yi Wu <appleboy.tw@gmail.com>2017-01-27 23:03:32 +0800
committerLunny Xiao <xiaolunwen@gmail.com>2017-01-27 23:03:32 +0800
commit25663b58161c48bdc8e9cae900544378dede0d2b (patch)
tree1d0cab794b549116cf685101a62cc21634356d6b /modules/markdown/markdown.go
parent4faf097fb9d07003b52d5f6e51ad3e624a5db062 (diff)
downloadgitea-25663b58161c48bdc8e9cae900544378dede0d2b.tar.gz
gitea-25663b58161c48bdc8e9cae900544378dede0d2b.zip
refactor: Remove unnecessary type conversions (#772)
Diffstat (limited to 'modules/markdown/markdown.go')
-rw-r--r--modules/markdown/markdown.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/markdown/markdown.go b/modules/markdown/markdown.go
index b973b7c836..c0b7c91f83 100644
--- a/modules/markdown/markdown.go
+++ b/modules/markdown/markdown.go
@@ -301,7 +301,7 @@ func RenderSha1CurrentPattern(rawBytes []byte, urlPrefix string) []byte {
if com.StrTo(m).MustInt() > 0 {
return m
}
- return fmt.Sprintf(`<a href="%s/commit/%s"><code>%s</code></a>`, urlPrefix, m, base.ShortSha(string(m)))
+ return fmt.Sprintf(`<a href="%s/commit/%s"><code>%s</code></a>`, urlPrefix, m, base.ShortSha(m))
}))
}