diff options
| author | guoguangwu <guoguangwug@gmail.com> | 2024-03-01 10:11:56 +0000 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2024-03-04 15:53:53 +0000 |
| commit | 1f1fcc34736087db4d385abf26b4ec0ef64193a1 (patch) | |
| tree | 8a19c12bd59ff4665a0407b81c30c6debff36511 /src/os/exec/exec_test.go | |
| parent | b414d044ff6d24ff23531e64d45ad775bc6c96bb (diff) | |
| download | go-1f1fcc34736087db4d385abf26b4ec0ef64193a1.tar.xz | |
os/exec: remove unnecessary fmt.Sprintf call
Change-Id: Ic0ac97a15dadd756d727fd8abe23359b0347af19
GitHub-Last-Rev: a96a3f5fe7fbfb41f38acadab3c03c4a76c89b78
GitHub-Pull-Request: golang/go#66052
Reviewed-on: https://go-review.googlesource.com/c/go/+/568317
Reviewed-by: Bryan Mills <bcmills@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Jorropo <jorropo.pgm@gmail.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Diffstat (limited to 'src/os/exec/exec_test.go')
| -rw-r--r-- | src/os/exec/exec_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/os/exec/exec_test.go b/src/os/exec/exec_test.go index 0f9c71ab57..c4b89e0199 100644 --- a/src/os/exec/exec_test.go +++ b/src/os/exec/exec_test.go @@ -304,7 +304,7 @@ func cmdExit(args ...string) { } func cmdDescribeFiles(args ...string) { - f := os.NewFile(3, fmt.Sprintf("fd3")) + f := os.NewFile(3, "fd3") ln, err := net.FileListener(f) if err == nil { fmt.Printf("fd3: listener %s\n", ln.Addr()) |
