Remove explicit boolean comparison
This commit is contained in:
parent
f3011698ba
commit
d7cfd5d01c
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue