From ec1442c2f4c21e8f42e234f50c5f9ae23d66bcc6 Mon Sep 17 00:00:00 2001 From: Jiri Date: Tue, 8 Oct 2024 11:42:02 +0200 Subject: [PATCH] Style --- app/upgrade_cudos.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/upgrade_cudos.go b/app/upgrade_cudos.go index e50e03e3..52d8c6ce 100644 --- a/app/upgrade_cudos.go +++ b/app/upgrade_cudos.go @@ -228,7 +228,6 @@ func getAccPrefix(jsonData map[string]interface{}) (string, error) { auth := jsonData[authtypes.ModuleName].(map[string]interface{}) accounts := auth["accounts"].([]interface{}) - prefix := "" lastErr := fmt.Errorf("unknown error") for _, acc := range accounts { accMap, ok := acc.(map[string]interface{}) @@ -242,7 +241,7 @@ func getAccPrefix(jsonData map[string]interface{}) (string, error) { continue } - prefix, _, err = bech32.DecodeAndConvert(accountInfo.address) + prefix, _, err := bech32.DecodeAndConvert(accountInfo.address) if err != nil { lastErr = fmt.Errorf("failed to decode address %s: %w", accountInfo.address, err) continue