bump-formula-pr: fix tag/revision argument.

Can't do `@args[hash_type]` if `hash_type` is `nil`.
This commit is contained in:
Mike McQuaid 2018-05-02 09:42:55 +01:00
parent c42273727f
commit ea9c9494a6

View File

@ -138,7 +138,7 @@ module Homebrew
[checksum.hash_type, checksum.hexdigest]
end
new_hash = @args[hash_type]
new_hash = @args[hash_type] if hash_type
new_tag = @args.tag
new_revision = @args.revision
new_mirror = @args.mirror