From 4cd24dbc9717754d5232a75358c237331ddfa3aa Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Thu, 21 Oct 2021 04:21:03 +0000 Subject: [PATCH] Function call can be replaced with helper function --- quote.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quote.go b/quote.go index f7fe7f7..434efa1 100644 --- a/quote.go +++ b/quote.go @@ -14,7 +14,7 @@ func (q Quote) ID(name string) string { if end > -1 { name = name[:end] } - return "`" + strings.Replace(name, "`", "``", -1) + "`" + return "`" + strings.ReplaceAll(name, "`", "``") + "`" } func (q Quote) Value(v interface{}) string {