mirror of
https://github.com/gogs/gogs.git
synced 2026-03-04 11:11:03 +01:00
autofix: function call can be replaced with helper function (#6805)
Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
deec3516d5
commit
5afca6ca8e
@@ -146,7 +146,7 @@ func Str2HTML(raw string) template.HTML {
|
||||
|
||||
// NewLine2br simply replaces "\n" to "<br>".
|
||||
func NewLine2br(raw string) string {
|
||||
return strings.Replace(raw, "\n", "<br>", -1)
|
||||
return strings.ReplaceAll(raw, "\n", "<br>")
|
||||
}
|
||||
|
||||
func Sha1(str string) string {
|
||||
|
||||
Reference in New Issue
Block a user