From 78012b197080ce1831fb6c5740a553d793511d68 Mon Sep 17 00:00:00 2001 From: pharr117 Date: Sun, 16 Jun 2024 23:04:43 -0400 Subject: [PATCH] gofumpt --- osmosis/modules/poolmanager/types.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/osmosis/modules/poolmanager/types.go b/osmosis/modules/poolmanager/types.go index e778981..ecf21d5 100644 --- a/osmosis/modules/poolmanager/types.go +++ b/osmosis/modules/poolmanager/types.go @@ -285,7 +285,6 @@ func (sf *WrapperMsgSwapExactAmountOut) HandleMsg(msgType string, msg sdk.Msg, l if transfer.Sender == sf.OsmosisMsgSwapExactAmountOut.Sender && transfer.Recipient == contractAddress { transferredAmount, err := sdk.ParseCoinNormalized(transfer.Amount) - if err != nil { return errors.New("error parsing contract to user transfer amount") } @@ -320,7 +319,6 @@ func (sf *WrapperMsgSwapExactAmountOut) HandleMsg(msgType string, msg sdk.Msg, l if transfer.Recipient == sf.OsmosisMsgSwapExactAmountOut.Sender && transfer.Sender == contractAddress { transferredAmount, err := sdk.ParseCoinNormalized(transfer.Amount) - if err != nil { return errors.New("error parsing contract to user transfer amount") } @@ -342,7 +340,6 @@ func (sf *WrapperMsgSwapExactAmountOut) HandleMsg(msgType string, msg sdk.Msg, l // Subtract the two to get the token in tokenInAmount, err := userToContractAmount.SafeSub(*contractToUserAmount) - if err != nil { return errors.New("error subtracting contract to user amount from user to contract amount") }