Merge pull request #16202 from ZhongRuoyu/digest-sha256

utils/curl: fix `Digest::SHA256` typo
This commit is contained in:
Mike McQuaid 2023-11-10 16:55:45 +00:00 committed by GitHub
commit 22a56e896e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -456,7 +456,7 @@ module Utils
end
end
file_contents = File.read(T.must(file.path), **open_args)
file_hash = Digest::SHA2.hexdigest(file_contents) if hash_needed
file_hash = Digest::SHA256.hexdigest(file_contents) if hash_needed
end
{