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
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
err = k.TrySwitchToNewConsensusGuardianSet(ctx)
|
return k.TrySwitchToNewConsensusGuardianSet(ctx)
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
return err
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (k Keeper) TrySwitchToNewConsensusGuardianSet(ctx sdk.Context) error {
|
func (k Keeper) TrySwitchToNewConsensusGuardianSet(ctx sdk.Context) error {
|
||||||
|
|
Loading…
Reference in New Issue