Update Library/Homebrew/sorbet/custom_generators/env_config.rb

This commit is contained in:
Issy Long 2023-03-13 00:11:12 +00:00 committed by GitHub
parent 3b45ecdc70
commit 703b9b4f4d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,7 +24,7 @@ File.open("#{__dir__}/../../env_config.rbi", "w") do |file|
methods.each do |method| methods.each do |method|
return_type = if method.end_with?("?") return_type = if method.end_with?("?")
T::Boolean T::Boolean
elsif (default = dynamic_methods[method][:default])F elsif (default = dynamic_methods[method][:default])
default.class default.class
else else
T.nilable(String) T.nilable(String)