(QENG-3919) minor readability tweak in refactored method

This commit is contained in:
Rick Bradley 2016-05-26 11:35:49 -05:00
parent 2f9bc4023b
commit 5032b51c81

View file

@ -73,9 +73,7 @@ module Vmpooler
end
def checkout_vm(template, result)
vm = fetch_single_vm(template)
unless vm.nil?
if vm = fetch_single_vm(template)
account_for_starting_vm(template, vm)
update_result_hosts(result, template, vm)
else