diff options
author | Tim Smith <tsmith84@gmail.com> | 2020-09-09 15:26:16 -0700 |
---|---|---|
committer | Tim Smith <tsmith84@gmail.com> | 2020-09-09 15:26:16 -0700 |
commit | e722fe8ca23533f83c3c6979c95bf2a160069c41 (patch) | |
tree | 68a05425d120612df21d0c26225895d0035bba31 /lib/mixlib/shellout.rb | |
parent | e2a43f613ff1830175716acd541cf3bc921183d6 (diff) | |
download | mixlib-shellout-e722fe8ca23533f83c3c6979c95bf2a160069c41.tar.gz |
Simplify things a bit with &.safe
Use the latest and greatest ruby-isms to cut down on some code.
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib/mixlib/shellout.rb')
-rw-r--r-- | lib/mixlib/shellout.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |