refactor: use a more straightforward return value (#23718)
Signed-off-by: fuyangpengqi <995764973@qq.com>
This commit is contained in:
parent
e2d969d59d
commit
4d474617de
@ -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 {
|
||||
|
||||
@ -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.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user