diff --git a/x/fswap/keeper/proposal.go b/x/fswap/keeper/proposal.go index 7ebb8a8df9..857dc0e5c9 100644 --- a/x/fswap/keeper/proposal.go +++ b/x/fswap/keeper/proposal.go @@ -47,8 +47,7 @@ func (k Keeper) MakeSwap(ctx sdk.Context, swap types.Swap, toDenomMetadata bank. } } - err := k.setSwap(ctx, swap) - if err != nil { + if err := k.setSwap(ctx, swap); err != nil { return err }