wormchain: wormhole: Simplify return in UpdateGuardianSet

This commit is contained in:
Chirantan Ekbote 2022-08-23 14:26:31 +09:00 committed by Chirantan Ekbote
parent 96c0db86ce
commit 317c0cf7c9
1 changed files with 1 additions and 5 deletions

View File

@ -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 {