From 54c8738d3076b7e84e8b2a5f6ab1a34cae347efc Mon Sep 17 00:00:00 2001 From: Christian Berendt Date: Thu, 7 Aug 2014 10:37:31 +0200 Subject: [PATCH] Rewrite two if statements to improve readability Change-Id: Icf9c7d7cc21f7551250cab482033721555c27030 --- Vagrantfile | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/Vagrantfile b/Vagrantfile index d97a7c6..ff3f23f 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -76,14 +76,8 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| # # The boot time is long for these, so I recommend that you convert to a local # version as soon as you can. - if conf['box_name'] - config.vm.box = conf['box_name'] - else - config.vm.box = 'ubuntu/trusty64' - end - if conf['box_url'] - config.vm.box_url = conf['box_url'] - end + config.vm.box = conf['box_name'] || 'ubuntu/trusty64' + config.vm.box_url = conf['box_url'] if conf['box_url'] if Vagrant.has_plugin?("vagrant-cachier") config.cache.scope = :box