Skip to content

Commit

Permalink
remove else
Browse files Browse the repository at this point in the history
  • Loading branch information
boojamya committed Nov 2, 2023
1 parent 48fc33d commit 82b175f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions relayer/chains/cosmos/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 82b175f

Please sign in to comment.