aboutsummaryrefslogtreecommitdiff
path: root/internal/cmd
diff options
context:
space:
mode:
authordeepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>2022-03-06 16:33:55 +0800
committerGitHub <noreply@github.com>2022-03-06 16:33:55 +0800
commit5afca6ca8eaadebc613dce291da2bae1030ccca9 (patch)
tree46f86403c6abdeabd6172ee5243caa3bfe5a79a4 /internal/cmd
parentdeec3516d53e9a9679128ade0556ccc818a67be1 (diff)
autofix: function call can be replaced with helper function (#6805)
Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
Diffstat (limited to 'internal/cmd')
-rw-r--r--internal/cmd/import.go2
1 files changed, 1 insertions, 1 deletions
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")