Skip to content

Commit

Permalink
Simplify proxy binary switch statement
Browse files Browse the repository at this point in the history
  • Loading branch information
benbp committed Jul 15, 2023
1 parent 9301849 commit 5e22780
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions sdk/internal/recording/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,10 @@ import (
)

func getTestProxyDownloadFile() (string, error) {
// No ARM binaries for Windows, so return x64
if runtime.GOOS == "windows" {
return "test-proxy-standalone-win-x64.zip", nil
}

switch {
case runtime.GOOS == "windows":
// No ARM binaries for Windows, so return x64
return "test-proxy-standalone-win-x64.zip", nil
case runtime.GOOS == "linux" && runtime.GOARCH == "amd64":
return "test-proxy-standalone-linux-x64.tar.gz", nil
case runtime.GOOS == "linux" && runtime.GOARCH == "arm64":
Expand Down

0 comments on commit 5e22780

Please sign in to comment.