summaryrefslogtreecommitdiff
path: root/lib/mixlib/authentication/digester.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mixlib/authentication/digester.rb')
-rw-r--r--lib/mixlib/authentication/digester.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/mixlib/authentication/digester.rb b/lib/mixlib/authentication/digester.rb
index 8628d53..f826b4c 100644
--- a/lib/mixlib/authentication/digester.rb
+++ b/lib/mixlib/authentication/digester.rb
@@ -27,9 +27,7 @@ module Mixlib
def hash_file(f, digest = OpenSSL::Digest::SHA1)
digester = digest.new
buf = ""
- while f.read(16384, buf)
- digester.update buf
- end
+ digester.update buf while f.read(16384, buf)
::Base64.encode64(digester.digest).chomp
end