diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2016-11-15 15:13:44 -0800 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2016-12-06 13:08:26 -0800 |
commit | 76427185b3dddfc9901dc2cbe5f1f7a6c9af661c (patch) | |
tree | 7f2023a7a04cb4491f82c1d5493128b071e2cf71 /lib/chef/chef_fs | |
parent | 7a3ca23fd977ca4f894cba54f76d64a77562f012 (diff) | |
download | chef-76427185b3dddfc9901dc2cbe5f1f7a6c9af661c.tar.gz |
fix Style/NilComparison
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'lib/chef/chef_fs')
-rw-r--r-- | lib/chef/chef_fs/command_line.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/chef_fs/command_line.rb b/lib/chef/chef_fs/command_line.rb index 2d887f4780..1b6884514a 100644 --- a/lib/chef/chef_fs/command_line.rb +++ b/lib/chef/chef_fs/command_line.rb @@ -229,7 +229,7 @@ class Chef end end - if old_value == :none || (old_value == nil && !old_entry.exists?) + if old_value == :none || (old_value.nil? && !old_entry.exists?) return [ [ :added, old_entry, new_entry, old_value, new_value ] ] elsif new_value == :none return [ [ :deleted, old_entry, new_entry, old_value, new_value ] ] |