From 70d29941ccc937fffdc5de408c70c1fbe2a3c321 Mon Sep 17 00:00:00 2001 From: Lamont Granquist Date: Tue, 20 Jun 2017 12:10:38 -0700 Subject: fix chefstyle offenses Signed-off-by: Lamont Granquist --- lib/mixlib/authentication/signedheaderauth.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/mixlib/authentication/signedheaderauth.rb b/lib/mixlib/authentication/signedheaderauth.rb index 2d49ad1..e870135 100644 --- a/lib/mixlib/authentication/signedheaderauth.rb +++ b/lib/mixlib/authentication/signedheaderauth.rb @@ -177,10 +177,10 @@ module Mixlib # TODO: tim 2009-12-28: It'd be nice to just remove this special case, # always sign the entire request body, using the expanded multipart # body in the case of a file being include. - @hashed_body ||= if self.file && self.file.respond_to?(:read) - digester.hash_file(self.file, digest) + @hashed_body ||= if file && file.respond_to?(:read) + digester.hash_file(file, digest) else - digester.hash_string(self.body, digest) + digester.hash_string(body, digest) end end -- cgit v1.2.1