Skip to content

Commit

Permalink
refactor(participation): simplify IsRegisterEnabled return statement (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Johnson authored Apr 27, 2022
1 parent 0b443ae commit 3c2c2cc
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions x/participation/keeper/registration_period.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,5 @@ func (k Keeper) IsRegistrationEnabled(ctx sdk.Context, auctionStartTime time.Tim
}
// as commented in `Time.Sub()`: To compute t-d for a duration d, use t.Add(-d).
registrationStart := auctionStartTime.Add(-registrationPeriod)
if !blockTime.After(registrationStart) {
return false
}
return true
return blockTime.After(registrationStart)
}

0 comments on commit 3c2c2cc

Please sign in to comment.