mirror of
https://github.com/go-gitea/gitea
synced 2025-07-14 22:47:21 +00:00
refactor: Remove unnecessary type conversions (#772)
This commit is contained in:
@ -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))
|
||||
}))
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user