mirror of
https://github.com/golang/go
synced 2024-10-14 11:53:56 +00:00
os/exec: remove unnecessary fmt.Sprintf call
Change-Id: Ic0ac97a15dadd756d727fd8abe23359b0347af19
GitHub-Last-Rev: a96a3f5fe7
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>
This commit is contained in:
parent
b414d044ff
commit
1f1fcc3473
|
@ -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())
|
||||
|
|
Loading…
Reference in a new issue