wormchain: wormhole: Simplify return in UpdateGuardianSet
This commit is contained in:
parent
96c0db86ce
commit
317c0cf7c9
|
@ -51,11 +51,7 @@ func (k Keeper) UpdateGuardianSet(ctx sdk.Context, newGuardianSet types.Guardian
|
|||
return err
|
||||
}
|
||||
|
||||
err = k.TrySwitchToNewConsensusGuardianSet(ctx)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
return err
|
||||
return k.TrySwitchToNewConsensusGuardianSet(ctx)
|
||||
}
|
||||
|
||||
func (k Keeper) TrySwitchToNewConsensusGuardianSet(ctx sdk.Context) error {
|
||||
|
|
Loading…
Reference in New Issue