From 5afca6ca8eaadebc613dce291da2bae1030ccca9 Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Sun, 6 Mar 2022 16:33:55 +0800 Subject: autofix: function call can be replaced with helper function (#6805) Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com> --- internal/cmd/import.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/cmd/import.go') diff --git a/internal/cmd/import.go b/internal/cmd/import.go index 0bfe6c20..3c0f3b04 100644 --- a/internal/cmd/import.go +++ b/internal/cmd/import.go @@ -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") -- cgit v1.2.3