From 6fc08ceb3c3f3d5f042c79e863fbdef7215308bc Mon Sep 17 00:00:00 2001 From: David Terpay Date: Thu, 12 Oct 2023 17:02:30 -0400 Subject: [PATCH] lint --- x/auction/keeper/auction.go | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/x/auction/keeper/auction.go b/x/auction/keeper/auction.go index e02e068f..2ec0e321 100644 --- a/x/auction/keeper/auction.go +++ b/x/auction/keeper/auction.go @@ -38,11 +38,7 @@ func (k Keeper) ValidateBidInfo(ctx sdk.Context, highestBid sdk.Coin, bidInfo *t } // Validate the timeouts of the transactions in the bundle. - if err := k.ValidateBundleTimeouts(bidInfo); err != nil { - return err - } - - return nil + return k.ValidateBundleTimeouts(bidInfo) } // ValidateAuctionBid validates that the bidder has sufficient funds to participate in the auction and that the bid amount @@ -186,8 +182,8 @@ func (k Keeper) ValidateAuctionBundle(bidder sdk.AccAddress, bundleSigners []map } // ValidateBundleTimeouts validates that the timeouts of the transactions in the bundle are valid. We consider -// the timeouts valid iff all of the bidders txs in the bundle are all the same and are equal to the timeout of the bid. -// This is mandatory as otherwise other searchers can potentially include other searcher's transactions in their bundles. +// the timeouts valid iff all of the bidders txs in the bundle are equal to the timeout of the bid. This is +// mandatory as otherwise other searchers can potentially include other searcher's transactions in their bundles. func (k Keeper) ValidateBundleTimeouts(bidInfo *types.BidInfo) error { bidder := bidInfo.Bidder.String() bidTimeout := bidInfo.Timeout