mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-23 07:43:18 -05:00
Make long godoc comment 2 lines
This commit is contained in:
parent
2bb188ae79
commit
95d4cd9292
1 changed files with 2 additions and 1 deletions
|
@ -43,7 +43,8 @@ func EncodeSha1(str string) string {
|
||||||
return hex.EncodeToString(h.Sum(nil))
|
return hex.EncodeToString(h.Sum(nil))
|
||||||
}
|
}
|
||||||
|
|
||||||
// ShortSha is basically just truncating. It is DEPRECATED and will be removed in the future.
|
// ShortSha is basically just truncating.
|
||||||
|
// It is DEPRECATED and will be removed in the future.
|
||||||
func ShortSha(sha1 string) string {
|
func ShortSha(sha1 string) string {
|
||||||
return TruncateString(sha1, 10)
|
return TruncateString(sha1, 10)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue