diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2016-11-15 15:16:07 -0800 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2016-12-06 13:08:26 -0800 |
commit | faa499f9fd646ccdc05d7520512c087d672f755d (patch) | |
tree | 643b56d26de3dfe6c2f04613d242eb950aec6ee6 /lib/chef/node.rb | |
parent | 76427185b3dddfc9901dc2cbe5f1f7a6c9af661c (diff) | |
download | chef-faa499f9fd646ccdc05d7520512c087d672f755d.tar.gz |
fix Style/NonNilCheck
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'lib/chef/node.rb')
-rw-r--r-- | lib/chef/node.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/node.rb b/lib/chef/node.rb index f2a5cab1f5..087a173880 100644 --- a/lib/chef/node.rb +++ b/lib/chef/node.rb @@ -111,7 +111,7 @@ class Chef # Set the name of this Node, or return the current name. def name(arg = nil) - if arg != nil + if !arg.nil? validate( { :name => arg }, { :name => { :kind_of => String, |