summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcuriositycasualty <isa@getchef.com>2014-10-14 16:54:06 -0700
committercuriositycasualty <isa@getchef.com>2014-10-14 16:54:06 -0700
commit2d1880d24d9b78b4d82a893e563feab92950628c (patch)
treeee599d7a5aa0a603da2e41959e90a138e70bdb71
parent72f13fd58353b69fcf0f686a14cb52f8b29991a4 (diff)
downloadchef-if/fix-cheffs-compare.tar.gz
correctly assign a_value for returnif/fix-cheffs-compare
-rw-r--r--lib/chef/chef_fs/file_system.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/chef_fs/file_system.rb b/lib/chef/chef_fs/file_system.rb
index 730fa0e5cc..9a5a9be6f7 100644
--- a/lib/chef/chef_fs/file_system.rb
+++ b/lib/chef/chef_fs/file_system.rb
@@ -242,7 +242,7 @@ class Chef
if are_same.nil?
are_same, b_value, a_value = b.compare_to(a)
end
- if are_same.nil?
+ if !are_same.nil?
# TODO these reads can be parallelized
begin
a_value = a.read if a_value.nil?