From 25663b58161c48bdc8e9cae900544378dede0d2b Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Fri, 27 Jan 2017 23:03:32 +0800 Subject: refactor: Remove unnecessary type conversions (#772) --- modules/markdown/markdown.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/markdown/markdown.go') 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(`%s`, urlPrefix, m, base.ShortSha(string(m))) + return fmt.Sprintf(`%s`, urlPrefix, m, base.ShortSha(m)) })) } -- cgit v1.2.3