From cd97f2f4e40b31b729655c55b7820072cec60d28 Mon Sep 17 00:00:00 2001 From: Pagran <67878280+pagran@users.noreply.github.com> Date: Mon, 17 Aug 2020 13:28:38 +0300 Subject: [PATCH] Simplify --- bench_test.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/bench_test.go b/bench_test.go index ca2df3c..46f2303 100644 --- a/bench_test.go +++ b/bench_test.go @@ -29,12 +29,11 @@ func BenchmarkBuild(b *testing.B) { } defer os.RemoveAll(tdir) - garbleBinaryName := "garble" + garbleBin := filepath.Join(tdir, "garble") if runtime.GOOS == "windows" { - garbleBinaryName += ".exe" + garbleBin += ".exe" } - garbleBin := filepath.Join(tdir, garbleBinaryName) if err := exec.Command("go", "build", "-o="+garbleBin).Run(); err != nil { b.Fatalf("building garble: %v", err) }