From 7ae496c7e2aeae131983e1114eec0b0e68cf7a88 Mon Sep 17 00:00:00 2001 From: ze97286 Date: Mon, 9 Sep 2024 16:37:58 +0100 Subject: [PATCH] fix: remove unneeded check for market length in GetPartyStats --- datanode/service/party_stats.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/datanode/service/party_stats.go b/datanode/service/party_stats.go index ec6efc80c6..14893b0b22 100644 --- a/datanode/service/party_stats.go +++ b/datanode/service/party_stats.go @@ -17,7 +17,6 @@ package service import ( "context" - "fmt" "code.vegaprotocol.io/vega/datanode/entities" "code.vegaprotocol.io/vega/libs/num" @@ -101,10 +100,6 @@ func NewPartyStatsService(epoch EpochStore, ref ReferralSetStore, vds VDSStore, } func (s *PSvc) GetPartyStats(ctx context.Context, partyID string, markets []string) (*v2.GetPartyDiscountStatsResponse, error) { - // ensure the arguments we received make sense: - if len(markets) == 0 { - return nil, fmt.Errorf("required to provide at least one market ID") - } // first up, last epoch to get the stats: epoch, err := s.epoch.GetCurrent(ctx) if err != nil {