summaryrefslogtreecommitdiff
path: root/lib/chef/encrypted_data_bag_item/decryptor.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/encrypted_data_bag_item/decryptor.rb')
-rw-r--r--lib/chef/encrypted_data_bag_item/decryptor.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/encrypted_data_bag_item/decryptor.rb b/lib/chef/encrypted_data_bag_item/decryptor.rb
index 1ddc99391d..88c800341c 100644
--- a/lib/chef/encrypted_data_bag_item/decryptor.rb
+++ b/lib/chef/encrypted_data_bag_item/decryptor.rb
@@ -192,7 +192,7 @@ class Chef::EncryptedDataBagItem
expected_bytes = expected_hmac.bytes.to_a
candidate_hmac_bytes = Base64.decode64(@encrypted_data["hmac"]).bytes.to_a
valid = expected_bytes.size ^ candidate_hmac_bytes.size
- expected_bytes.zip(candidate_hmac_bytes) { |x, y| valid |= x ^ y.to_i }
+ expected_bytes.zip(candidate_hmac_bytes) do |x, y| valid |= x ^ y.to_i end
valid == 0
end
end