fix(staking): fix impossible conditions (backport #19621) (#19624)

Co-authored-by: Tom <54514587+GAtom22@users.noreply.github.com>
Co-authored-by: sontrinh16 <trinhleson2000@gmail.com>
Co-authored-by: Julien Robert <julien@rbrt.fr>
This commit is contained in:
mergify[bot] 2024-03-04 11:00:46 +01:00 committed by GitHub
parent ab34a95270
commit 84a1ee2232
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -850,7 +850,7 @@ func (k Keeper) Unbond(
}
valAddr, err1 := k.validatorAddressCodec.StringToBytes(delegation.GetValidatorAddr())
if err != nil {
if err1 != nil {
return amount, err1
}