diff options
Diffstat (limited to 'lib/chef/property.rb')
-rw-r--r-- | lib/chef/property.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/property.rb b/lib/chef/property.rb index 5c9a62bed2..6aa76a5236 100644 --- a/lib/chef/property.rb +++ b/lib/chef/property.rb @@ -261,7 +261,7 @@ class Chef # @return [Boolean] # def desired_state? - return true if !options.key?(:desired_state) + return true unless options.key?(:desired_state) options[:desired_state] end @@ -554,7 +554,7 @@ class Chef def emit_dsl # We don't create the getter/setter if it's a custom property; we will # be using the existing getter/setter to manipulate it instead. - return if !instance_variable_name + return unless instance_variable_name # Properties may override existing properties up the inheritance heirarchy, but # properties must not override inherited methods like Object#hash. When the Resource is |