From f8e2c41a48354c00549428e7f79272e0d3516fca Mon Sep 17 00:00:00 2001 From: Mark Rushakoff Date: Thu, 6 Apr 2023 18:51:53 -0400 Subject: [PATCH] style: gofumpt client/v2 module (#15725) ## Description This was causing one set of linter failures. --- ### Author Checklist *All items are required. Please add a note to the item if the item is not applicable and please add links to any relevant follow up issues.* I have... - [x] included the correct [type prefix](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json) in the PR title - [x] targeted the correct branch (see [PR Targeting](https://github.com/cosmos/cosmos-sdk/blob/main/CONTRIBUTING.md#pr-targeting)) - [x] provided a link to the relevant issue or specification - [x] reviewed "Files changed" and left comments if necessary - [ ] confirmed all CI checks have passed ### Reviewers Checklist *All items are required. Please add a note if the item is not applicable and please add your handle next to the items reviewed if you only reviewed selected items.* I have... - [ ] confirmed the correct [type prefix](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json) in the PR title - [ ] confirmed all author checklist items have been addressed - [ ] confirmed that this PR does not change production code --- client/v2/autocli/flag/binary.go | 4 ++-- client/v2/autocli/query_test.go | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/client/v2/autocli/flag/binary.go b/client/v2/autocli/flag/binary.go index 55bf1675ad..901b400eb9 100644 --- a/client/v2/autocli/flag/binary.go +++ b/client/v2/autocli/flag/binary.go @@ -4,9 +4,10 @@ import ( "context" "encoding/base64" "encoding/hex" + "os" + "github.com/cockroachdb/errors" "google.golang.org/protobuf/reflect/protoreflect" - "os" ) type binaryType struct{} @@ -55,7 +56,6 @@ func (f *fileBinaryValue) Set(s string) error { } return errors.New("input string is neither a valid file path, hex, or base64 encoded") - } func (f *fileBinaryValue) Type() string { diff --git a/client/v2/autocli/query_test.go b/client/v2/autocli/query_test.go index 3dafa05dfa..434543ff9f 100644 --- a/client/v2/autocli/query_test.go +++ b/client/v2/autocli/query_test.go @@ -265,7 +265,6 @@ func TestBinaryFlag(t *testing.T) { assert.Assert(t, strings.Contains(conn.errorOut.String(), tc.err)) } }) - } } @@ -290,7 +289,6 @@ func TestAddressValidation(t *testing.T) { "--an-address", "cosmps1BAD_ENCODING", ) assert.Assert(t, strings.Contains(conn.errorOut.String(), "Error: invalid argument")) - } func TestOutputFormat(t *testing.T) {