Skip to content

Commit b64aef0

Browse files
hcraM41willnorris
authored andcommitted
code opt: replace bytes.Buffer with strings.Builder
1 parent ffb7deb commit b64aef0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

query/encode.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
package query
2222

2323
import (
24-
"bytes"
2524
"fmt"
2625
"net/url"
2726
"reflect"
@@ -229,7 +228,7 @@ func reflectValue(values url.Values, val reflect.Value, scope string) error {
229228
}
230229

231230
if del != "" {
232-
s := new(bytes.Buffer)
231+
s := new(strings.Builder)
233232
first := true
234233
for i := 0; i < sv.Len(); i++ {
235234
if first {

0 commit comments

Comments
 (0)