From 24c73607bdbb9dece9e7baf721f0636c1a305564 Mon Sep 17 00:00:00 2001 From: Michael Haggerty Date: Sun, 7 Nov 2021 15:31:44 +0100 Subject: [PATCH] sizerExe(): add a `default` clause to the `switch` statement Humor the linter. --- git_sizer_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/git_sizer_test.go b/git_sizer_test.go index 6e2def9..580268a 100644 --- a/git_sizer_test.go +++ b/git_sizer_test.go @@ -27,10 +27,12 @@ import ( func sizerExe(t *testing.T) string { t.Helper() - v := "bin/git-sizer" + var v string switch runtime.GOOS { case "windows": v = `bin\git-sizer.exe` + default: + v = "bin/git-sizer" } v, err := exec.LookPath(v)