From 586f56247ef1284ad778a6fceba16c6d149a2ff5 Mon Sep 17 00:00:00 2001 From: Denis Gukov Date: Tue, 24 Aug 2021 22:56:40 +0500 Subject: [PATCH] style(be): pass linter --- db/sql/SqlDb.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/sql/SqlDb.go b/db/sql/SqlDb.go index b9d63d8e..e1a88874 100644 --- a/db/sql/SqlDb.go +++ b/db/sql/SqlDb.go @@ -78,7 +78,7 @@ func (d *SqlDb) prepareQueryWithDialect(query string, dialect gorp.Dialect) stri case gorp.PostgresDialect: var queryBuilder strings.Builder argNum := 1 - for _, r := range []rune(query) { + for _, r := range query { switch r { case '?': queryBuilder.WriteString("$" + strconv.Itoa(argNum))