Remove explicit boolean comparison

This commit is contained in:
Chris Bednarski 2016-03-17 14:14:03 -07:00
parent f3011698ba
commit d7cfd5d01c
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ func (s *StepRegister) Cleanup(state multistep.StateBag) {
_, cancelled := state.GetOk(multistep.StateCancelled)
_, halted := state.GetOk(multistep.StateHalted)
if (config.KeepRegistered == true) && (!cancelled && !halted) {
if (config.KeepRegistered) && (!cancelled && !halted) {
ui.Say("Keeping virtual machine registered with ESX host (keep_registered = true)")
return
}