Skip to content

Commit

Permalink
add explicit error
Browse files Browse the repository at this point in the history
  • Loading branch information
cgorenflo committed Nov 13, 2023
1 parent ecc88e1 commit b14db9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/nexus/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ func (k *Keeper) SetAddressValidators(validators *types.AddressValidators) {

func (k Keeper) getAddressValidator(module string) (exported.AddressValidator, error) {
if k.addressValidators == nil {
k.SetAddressValidators(types.NewAddressValidators())
return nil, fmt.Errorf("address validator not set")
}

return k.addressValidators.GetAddressValidator(module)
Expand Down

0 comments on commit b14db9a

Please sign in to comment.