mirror of
https://github.com/gogs/gogs.git
synced 2026-01-27 09:39:18 +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
@@ -95,7 +95,7 @@ func runImportLocale(c *cli.Context) error {
|
||||
if idx > -1 && line[len(line)-1] == '"' {
|
||||
// We still want the "=" sign
|
||||
line = append(line[:idx+1], line[idx+2:len(line)-1]...)
|
||||
line = bytes.Replace(line, escapedQuotes, regularQuotes, -1)
|
||||
line = bytes.ReplaceAll(line, escapedQuotes, regularQuotes)
|
||||
}
|
||||
_, _ = tw.Write(line)
|
||||
_, _ = tw.WriteString("\n")
|
||||
|
||||
Reference in New Issue
Block a user