From e722fe8ca23533f83c3c6979c95bf2a160069c41 Mon Sep 17 00:00:00 2001 From: Tim Smith Date: Wed, 9 Sep 2020 15:26:16 -0700 Subject: Simplify things a bit with &. Use the latest and greatest ruby-isms to cut down on some code. Signed-off-by: Tim Smith --- lib/mixlib/shellout.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/mixlib/shellout.rb') diff --git a/lib/mixlib/shellout.rb b/lib/mixlib/shellout.rb index dc186a2..19be8f2 100644 --- a/lib/mixlib/shellout.rb +++ b/lib/mixlib/shellout.rb @@ -248,7 +248,7 @@ module Mixlib # running or died without setting an exit status (e.g., terminated by # `kill -9`). def exitstatus - @status && @status.exitstatus + @status&.exitstatus end # Run the command, writing the command's standard out and standard error -- cgit v1.2.1