From 5032b51c81a8df0b1f9c86ca8ffdb1e18a5b655e Mon Sep 17 00:00:00 2001 From: Rick Bradley Date: Thu, 26 May 2016 11:35:49 -0500 Subject: [PATCH] (QENG-3919) minor readability tweak in refactored method --- lib/vmpooler/api/v1.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/vmpooler/api/v1.rb b/lib/vmpooler/api/v1.rb index 8910090..d3ad611 100644 --- a/lib/vmpooler/api/v1.rb +++ b/lib/vmpooler/api/v1.rb @@ -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