Skip to content

Commit

Permalink
fix: remove useless nil check
Browse files Browse the repository at this point in the history
  • Loading branch information
RiccardoM committed Jun 6, 2024
1 parent e29c028 commit 8c49c49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/services/keeper/services.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func (k *Keeper) storeService(ctx sdk.Context, service types.Service) {
func (k *Keeper) CreateService(ctx sdk.Context, service types.Service) error {
// Charge for the creation
registrationFees := k.GetParams(ctx).ServiceRegistrationFee
if registrationFees != nil && !registrationFees.IsZero() {
if !registrationFees.IsZero() {
userAddress, err := sdk.AccAddressFromBech32(service.Admin)
if err != nil {
return err
Expand Down

0 comments on commit 8c49c49

Please sign in to comment.