From 8dd0434386af52df1c87d6846347e50641b16b2c Mon Sep 17 00:00:00 2001 From: Akshay Karle Date: Wed, 18 Nov 2015 22:32:58 -0300 Subject: [PATCH] replace 'if !' with 'unless' --- lib/lxc/start_ephemeral.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/lxc/start_ephemeral.rb b/lib/lxc/start_ephemeral.rb index 3823705..e7d66ce 100644 --- a/lib/lxc/start_ephemeral.rb +++ b/lib/lxc/start_ephemeral.rb @@ -28,7 +28,7 @@ module LXC dest.start(daemonize: opts[:daemonize]) - if !dest.wait(:running, 5) + unless dest.wait(:running, 5) dest.stop dest.destroy if dest.defined? raise ContainerError.new("The container '#{dest.name}' failed to start.")