Fix method call on nil.

This commit is contained in:
Markus Reiter 2020-12-11 16:27:53 +01:00 committed by Sam Ford
parent 3b366d05b9
commit fb3a1a408c
No known key found for this signature in database
GPG Key ID: 95209E46C7FFDEFE

View File

@ -107,7 +107,7 @@ module Homebrew
skip_result = skip_conditions(formula_or_cask, args: args)
next skip_result if skip_result != false
formula.head&.downloader&.shutup!
formula&.head&.downloader&.shutup!
# Use the `stable` version for comparison except for installed
# head-only formulae. A formula with `stable` and `head` that's