Skip to content
Snippets Groups Projects
Commit 31e0bf61 authored by Jack Nagel's avatar Jack Nagel
Browse files

Pathname: removed unused method alias

parent 5ae32d5a
No related branches found
No related tags found
No related merge requests found
......@@ -235,11 +235,10 @@ class Pathname
incremental_hash(Digest::SHA1)
end
def sha2
def sha256
require 'digest/sha2'
incremental_hash(Digest::SHA2)
end
alias_method :sha256, :sha2
def verify_checksum expected
raise ChecksumMissingError if expected.nil? or expected.empty?
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment