fetch: fix typecheck error

This is a better replacement of #15381.
This commit is contained in:
Carlo Cabrera 2023-05-08 21:54:18 +08:00
parent 9b369871e6
commit 975c4e66f7
No known key found for this signature in database
GPG Key ID: C74D447FC549A1D0

View File

@ -9,7 +9,7 @@ module Homebrew
bottle = formula.bottle bottle = formula.bottle
return true if args.force_bottle? && bottle.present? return true if args.force_bottle? && bottle.present?
return true if args.bottle_tag.present? && formula.bottled?(args.bottle_tag) return true if args.bottle_tag.present? && formula.bottled?(args.bottle_tag&.to_sym)
bottle.present? && bottle.present? &&
formula.pour_bottle? && formula.pour_bottle? &&