From 82b175f9e33c65db3c778add5e1ce463d1459bb1 Mon Sep 17 00:00:00 2001 From: Dan Kanefsky Date: Thu, 2 Nov 2023 16:39:07 -0700 Subject: [PATCH] remove else --- relayer/chains/cosmos/provider.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/relayer/chains/cosmos/provider.go b/relayer/chains/cosmos/provider.go index b3a75026d..4133f2db4 100644 --- a/relayer/chains/cosmos/provider.go +++ b/relayer/chains/cosmos/provider.go @@ -234,9 +234,8 @@ func (cc *CosmosProvider) TrustingPeriod(ctx context.Context, overrideUnbondingP if err != nil { return 0, err } - } else { - unbondingTime = overrideUnbondingPeriod } + // We want the trusting period to be 85% of the unbonding time. // Go mentions that the time.Duration type can track approximately 290 years. // We don't want to lose precision if the duration is a very long duration