optimize nested conditional (#709)
This commit is contained in:
@@ -53,9 +53,9 @@ func format(query string, args ...interface{}) (string, error) {
|
||||
}
|
||||
|
||||
var b strings.Builder
|
||||
argIndex := 0
|
||||
|
||||
var argIndex int
|
||||
bytes := len(query)
|
||||
|
||||
for i := 0; i < bytes; i++ {
|
||||
ch := query[i]
|
||||
switch ch {
|
||||
|
||||
Reference in New Issue
Block a user