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

Signed-off-by: fuyangpengqi <995764973@qq.com>
This commit is contained in:
fuyangpengqi 2025-03-03 23:53:17 +08:00 committed by GitHub
parent e2d969d59d
commit 4d474617de
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -209,7 +209,7 @@ func (k Keeper) GetDelegatorUnbonding(ctx context.Context, delegator sdk.AccAddr
if err != nil {
return unbonding, err
}
return unbonding, err
return unbonding, nil
}
// GetDelegatorBonded returns the total amount a delegator has bonded.