replace 'if !' with 'unless'

This commit is contained in:
Akshay Karle 2015-11-18 22:32:58 -03:00
parent 42ffa95758
commit 8dd0434386

View file

@ -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.")