refactor: Remove unnecessary type conversions (#772)

This commit is contained in:
Bo-Yi Wu 2017-01-27 23:03:32 +08:00 committed by Lunny Xiao
parent 4faf097fb9
commit 25663b5816
4 changed files with 5 additions and 5 deletions

View file

@ -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))
}))
}