bump-formula-pr: fix typo in spec existence check

Closes Homebrew/homebrew#50472.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Christian Moritz 2016-03-28 00:29:48 +02:00 committed by Xu Cheng
parent 6135da800e
commit a87eb23a3b

View File

@ -25,7 +25,7 @@ module Homebrew
else else
[:stable, formula.stable] [:stable, formula.stable]
end end
odie "#{formula}: no #{requested_spec} specification found!" unless formula odie "#{formula}: no #{requested_spec} specification found!" unless formula_spec
hash_type, old_hash = if (checksum = formula_spec.checksum) hash_type, old_hash = if (checksum = formula_spec.checksum)
[checksum.hash_type.to_s, checksum.hexdigest] [checksum.hash_type.to_s, checksum.hexdigest]