summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2021-02-02 14:33:16 -0800
committerTim Smith <tsmith84@gmail.com>2021-02-02 14:33:16 -0800
commitd78513923262b30ce3099bf9391b0cd1e931173c (patch)
tree92ca39ffbea83757012b5eb333062a26da977851
parent0b4cddb166f34d75d9daf2caaf3757966f363a5d (diff)
downloadchef-d78513923262b30ce3099bf9391b0cd1e931173c.tar.gz
Chefstyle fix
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--lib/chef/shell.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/shell.rb b/lib/chef/shell.rb
index 5bff9c0292..eee9493cd1 100644
--- a/lib/chef/shell.rb
+++ b/lib/chef/shell.rb
@@ -352,7 +352,7 @@ module Shell
puts "loading configuration: #{config_msg}"
# load the config (if we have one)
- if !config[:config_file].nil?
+ unless config[:config_file].nil?
if File.exist?(config[:config_file]) && File.readable?(config[:config_file])
Chef::Config.from_file(config[:config_file])
end