From ea9c9494a6a16998d532504a30bd03ca2e1f2e84 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Wed, 2 May 2018 09:42:55 +0100 Subject: [PATCH] bump-formula-pr: fix tag/revision argument. Can't do `@args[hash_type]` if `hash_type` is `nil`. --- Library/Homebrew/dev-cmd/bump-formula-pr.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/dev-cmd/bump-formula-pr.rb b/Library/Homebrew/dev-cmd/bump-formula-pr.rb index 66a72fe2a4..60c3d387c0 100644 --- a/Library/Homebrew/dev-cmd/bump-formula-pr.rb +++ b/Library/Homebrew/dev-cmd/bump-formula-pr.rb @@ -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