Resolve type errors
This commit is contained in:
parent
172e61224c
commit
e79760ec2c
@ -170,7 +170,7 @@ module Homebrew
|
||||
sig { returns(T::Array[String]) }
|
||||
def cli_args
|
||||
@cli_args ||= @processed_options.filter_map do |short, long|
|
||||
option = long || short
|
||||
option = T.must(long || short)
|
||||
switch = :"#{option_to_name(option)}?"
|
||||
flag = option_to_name(option).to_sym
|
||||
if @table[switch] == true || @table[flag] == true
|
||||
|
||||
@ -204,7 +204,7 @@ module Commands
|
||||
cmd_parser.processed_options.filter_map do |short, long, desc, hidden|
|
||||
next if hidden
|
||||
|
||||
[long || short, desc]
|
||||
[T.must(long || short), desc]
|
||||
end
|
||||
else
|
||||
options = []
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user