Skip to content

Commit

Permalink
Use "Tty" as a string directly in create_module
Browse files Browse the repository at this point in the history
- Sorbet was complaining about `constant.name` being nilable.
  • Loading branch information
issyl0 committed Mar 29, 2024
1 parent e4a1f33 commit 67a096f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Library/Homebrew/sorbet/tapioca/compilers/tty.rb
Expand Up @@ -21,7 +21,7 @@ def self.gather_constants

sig { override.void }
def decorate
root.create_module(constant.name) do |mod|
root.create_module("Tty") do |mod|
dynamic_methods = ::Tty::COLOR_CODES.keys + ::Tty::STYLE_CODES.keys + ::Tty::SPECIAL_CODES.keys
methods = ::Tty.methods(false).sort.select { |method| dynamic_methods.include?(method) }

Expand Down

0 comments on commit 67a096f

Please sign in to comment.