Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
jackgopack4 committed Sep 19, 2024
1 parent d588bb0 commit dd7abd0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmd/builder/internal/version_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,11 @@ func TestBinVersion(t *testing.T) {
}
}

var validBinVersionFunc binVersionFunc = func(fn debugReadBuildInfoFunc) (string, error) {
var validBinVersionFunc binVersionFunc = func(_ debugReadBuildInfoFunc) (string, error) {
return "v1.0.0", nil
}

var invalidBinVersionFunc binVersionFunc = func(fn debugReadBuildInfoFunc) (string, error) {
var invalidBinVersionFunc binVersionFunc = func(_ debugReadBuildInfoFunc) (string, error) {
return "", fmt.Errorf("failed to get version")
}

Expand Down Expand Up @@ -99,9 +99,9 @@ func TestVersionCommand(t *testing.T) {
parentCmd.AddCommand(cmd)
// Capture the output
output := bytes.NewBufferString("")
err_output := bytes.NewBufferString("")
errOutput := bytes.NewBufferString("")
cmd.SetOut(output)
cmd.SetErr(err_output)
cmd.SetErr(errOutput)
// Create a new context with a fake value
type contextKey string
ctx := context.WithValue(context.Background(), contextKey("key"), "value")
Expand Down

0 comments on commit dd7abd0

Please sign in to comment.