Fix type error.

This commit is contained in:
Markus Reiter 2020-12-11 16:50:09 +01:00 committed by Sam Ford
parent af56a99a37
commit 00e219caf9
No known key found for this signature in database
GPG Key ID: 95209E46C7FFDEFE

View File

@ -85,7 +85,7 @@ module Homebrew
names = Pathname.new(WATCHLIST_PATH).read.lines names = Pathname.new(WATCHLIST_PATH).read.lines
.reject { |line| line.start_with?("#") || line.blank? } .reject { |line| line.start_with?("#") || line.blank? }
.map(&:strip) .map(&:strip)
named_args = CLI::NamedArgs.new(*names) named_args = T.unsafe(CLI::NamedArgs).new(*names)
if args.formula? if args.formula?
named_args.to_formulae named_args.to_formulae
elsif args.cask? elsif args.cask?