From fedc20ac371612c02c2ab100769f2a985b23b684 Mon Sep 17 00:00:00 2001 From: Alessio Treglia Date: Thu, 12 Sep 2024 15:50:03 +0800 Subject: [PATCH] fix linter warnings Signed-off-by: Alessio Treglia --- crypto/keyring/keyring_linux.go | 1 - crypto/keyring/keyring_linux_test.go | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crypto/keyring/keyring_linux.go b/crypto/keyring/keyring_linux.go index 9ca03073a5c2..7db47961bab1 100644 --- a/crypto/keyring/keyring_linux.go +++ b/crypto/keyring/keyring_linux.go @@ -64,7 +64,6 @@ func newKeyctlBackendConfig(appName, _ string, _ io.Reader, opts ...Option) keyr func New( appName, backend, rootDir string, userInput io.Reader, cdc codec.Codec, opts ...Option, ) (Keyring, error) { - if backend != BackendKeyctl { return newKeyringGeneric(appName, backend, rootDir, userInput, cdc, opts...) } diff --git a/crypto/keyring/keyring_linux_test.go b/crypto/keyring/keyring_linux_test.go index 50d5db3e8c0d..a6695b6b9471 100644 --- a/crypto/keyring/keyring_linux_test.go +++ b/crypto/keyring/keyring_linux_test.go @@ -9,8 +9,9 @@ import ( "strings" "testing" - "github.com/cosmos/cosmos-sdk/codec" "github.com/stretchr/testify/require" + + "github.com/cosmos/cosmos-sdk/codec" ) func TestNewKeyctlKeyring(t *testing.T) {