From 0686af719d1bde934e0f619f588b5f0c9e15a535 Mon Sep 17 00:00:00 2001 From: Qt Date: Mon, 26 Feb 2024 05:54:05 +0800 Subject: [PATCH] refactor(x/auth): simplify unnecessary code (#19552) --- x/auth/tx/config/depinject.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/x/auth/tx/config/depinject.go b/x/auth/tx/config/depinject.go index d2cf230fd1..85ce366c9b 100644 --- a/x/auth/tx/config/depinject.go +++ b/x/auth/tx/config/depinject.go @@ -83,10 +83,8 @@ func ProvideModule(in ModuleInputs) ModuleOutputs { CustomSignModes: customSignModeHandlers, } - if in.CustomGetSigners != nil { - for _, mode := range in.CustomGetSigners { - txConfigOptions.SigningOptions.CustomGetSigners[mode.MsgType] = mode.Fn - } + for _, mode := range in.CustomGetSigners { + txConfigOptions.SigningOptions.CustomGetSigners[mode.MsgType] = mode.Fn } // enable SIGN_MODE_TEXTUAL only if bank keeper is available