From 7b3e658bfc2616ff2621ccb85628d644f6b0be9c Mon Sep 17 00:00:00 2001 From: CHAMI Rachid Date: Fri, 19 Jul 2024 13:49:23 +0200 Subject: [PATCH] chore: remove unnecessary code --- pkg/proof/querier.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/pkg/proof/querier.go b/pkg/proof/querier.go index b314e1db43..4e32dfb5c4 100644 --- a/pkg/proof/querier.go +++ b/pkg/proof/querier.go @@ -133,10 +133,6 @@ func ParseNamespace(rawShares []shares.Share, startShare, endShare int) (appns.N return appns.Namespace{}, fmt.Errorf("end share %d cannot be lower or equal to the starting share %d", endShare, startShare) } - if endShare < startShare { - return appns.Namespace{}, fmt.Errorf("end share %d cannot be lower than starting share %d", endShare, startShare) - } - if endShare > len(rawShares) { return appns.Namespace{}, fmt.Errorf("end share %d is higher than block shares %d", endShare, len(rawShares)) }