refactor: use a more straightforward return value (backport #23718) (#23875)

Co-authored-by: fuyangpengqi <167312867+fuyangpengqi@users.noreply.github.com>
Co-authored-by: aljo242 <alex@interchainlabs.io>
This commit is contained in:
mergify[bot] 2025-03-03 16:40:33 -05:00 committed by GitHub
parent f56b1bf38b
commit 40e201e061
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 2 deletions

View File

@ -126,7 +126,7 @@ func (ss StdSignature) MarshalYAML() (interface{}, error) {
return nil, err
}
return string(bz), err
return string(bz), nil
}
func (ss StdSignature) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error {

View File

@ -273,7 +273,11 @@ func (k Keeper) GetDelegatorUnbonding(ctx context.Context, delegator sdk.AccAddr
}
return false
})
return unbonding, err
if err != nil {
return unbonding, err
}
return unbonding, nil
}
// IterateDelegatorUnbondingDelegations iterates through a delegator's unbonding delegations.