Skip to content

Commit c761409

Browse files
cuiweixiegopherbot
authored andcommitted
misc: use strings.Builder
Change-Id: Icb53d32f2de13287b1b4f4f67dab90fe5ee7a3df Reviewed-on: https://go-review.googlesource.com/c/go/+/428254 Reviewed-by: Robert Griesemer <[email protected]> Auto-Submit: Ian Lance Taylor <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Run-TryBot: Ian Lance Taylor <[email protected]>
1 parent a60a3dc commit c761409

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

misc/android/go_android_exec.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
package main
1111

1212
import (
13-
"bytes"
1413
"errors"
1514
"fmt"
1615
"go/build"
@@ -28,7 +27,7 @@ import (
2827

2928
func run(args ...string) (string, error) {
3029
cmd := adbCmd(args...)
31-
buf := new(bytes.Buffer)
30+
buf := new(strings.Builder)
3231
cmd.Stdout = io.MultiWriter(os.Stdout, buf)
3332
// If the adb subprocess somehow hangs, go test will kill this wrapper
3433
// and wait for our os.Stderr (and os.Stdout) to close as a result.

0 commit comments

Comments
 (0)