diff options
author | Bo-Yi Wu <appleboy.tw@gmail.com> | 2017-01-27 23:03:32 +0800 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2017-01-27 23:03:32 +0800 |
commit | 25663b58161c48bdc8e9cae900544378dede0d2b (patch) | |
tree | 1d0cab794b549116cf685101a62cc21634356d6b /modules/markdown/markdown.go | |
parent | 4faf097fb9d07003b52d5f6e51ad3e624a5db062 (diff) | |
download | gitea-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.go | 2 |
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)) })) } |