From 03177f260e2fe04c25bd2b2c2725e40c16ab6c35 Mon Sep 17 00:00:00 2001 From: P-U-D-G-E Date: Wed, 27 Sep 2023 02:35:35 +0530 Subject: [PATCH] lint --- x/orderbook/keeper/bet_wager.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/x/orderbook/keeper/bet_wager.go b/x/orderbook/keeper/bet_wager.go index 251361f8..015a245c 100644 --- a/x/orderbook/keeper/bet_wager.go +++ b/x/orderbook/keeper/bet_wager.go @@ -261,6 +261,7 @@ func (k Keeper) initFulfillmentInfo( exposures, found := peMap[bp.Index] if !found { err = sdkerrors.Wrapf(types.ErrParticipationExposuresNotFound, "%s, %d", book.UID, bp.Index) + return } fInfo.fulfillmentMap[bp.Index] = fulfillmentItem{ participation: bp, @@ -482,7 +483,7 @@ func (fInfo *fulfillmentInfo) checkFullfillmentForOtherOdds(requeThreshold sdkma return } - // check if other exposures are fullfilled according to new max loss multipliers + // check if other exposures are fulfilled according to new max loss multipliers for _, oddUID := range fInfo.oddUIDS { exposure, ok := fInfo.inProcessItem.allExposures[oddUID] if !ok { @@ -510,7 +511,7 @@ func (fInfo *fulfillmentInfo) checkFullfillmentForOtherOdds(requeThreshold sdkma } } - return + return eUpdate, err } func (fInfo *fulfillmentInfo) setItemFulfilledAndRemove() {