Skip to content

Commit 71f33a7

Browse files
committed
refactor: return err directly
1 parent 6ab7f61 commit 71f33a7

File tree

1 file changed

+1
-4
lines changed
  • relayer/chains/cosmos

1 file changed

+1
-4
lines changed

relayer/chains/cosmos/tx.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1676,10 +1676,7 @@ func (cc *CosmosProvider) PrepareFactory(txf tx.Factory, signingKey string) (tx.
16761676

16771677
// Set the account number and sequence on the transaction factory and retry if fail
16781678
if err = retry.Do(func() error {
1679-
if err = txf.AccountRetriever().EnsureExists(cliCtx, from); err != nil {
1680-
return err
1681-
}
1682-
return err
1679+
return txf.AccountRetriever().EnsureExists(cliCtx, from)
16831680
}, rtyAtt, rtyDel, rtyErr); err != nil {
16841681
return txf, err
16851682
}

0 commit comments

Comments
 (0)