diff --git a/Library/Homebrew/sorbet/custom_generators/env_config.rb b/Library/Homebrew/sorbet/custom_generators/env_config.rb index 5bd6516b42..29361a3a70 100644 --- a/Library/Homebrew/sorbet/custom_generators/env_config.rb +++ b/Library/Homebrew/sorbet/custom_generators/env_config.rb @@ -24,7 +24,7 @@ File.open("#{__dir__}/../../env_config.rbi", "w") do |file| methods.each do |method| return_type = if method.end_with?("?") T::Boolean - elsif (default = dynamic_methods[method][:default])F + elsif (default = dynamic_methods[method][:default]) default.class else T.nilable(String)