summaryrefslogtreecommitdiff
path: root/lib/chef/provider/link.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/provider/link.rb')
-rw-r--r--lib/chef/provider/link.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/provider/link.rb b/lib/chef/provider/link.rb
index 83b5dd8c00..5fce97e5b3 100644
--- a/lib/chef/provider/link.rb
+++ b/lib/chef/provider/link.rb
@@ -74,8 +74,8 @@ class Chef
requirements.assert(:delete) do |a|
a.assertion do
if @current_resource.to
- @current_resource.link_type == @new_resource.link_type and
- (@current_resource.link_type == :symbolic or @current_resource.to != "")
+ @current_resource.link_type == @new_resource.link_type &&
+ (@current_resource.link_type == :symbolic || @current_resource.to != "")
else
true
end