From 8f3a0d87b1c085968652e813aeb8f685078e1732 Mon Sep 17 00:00:00 2001 From: Alexander Momchilov Date: Wed, 10 Jul 2024 14:53:54 -0400 Subject: [PATCH] Remove unnecessary `.each` --- lib/tapioca/dsl/compiler.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tapioca/dsl/compiler.rb b/lib/tapioca/dsl/compiler.rb index 53a1f75fe..ba9e64627 100644 --- a/lib/tapioca/dsl/compiler.rb +++ b/lib/tapioca/dsl/compiler.rb @@ -57,7 +57,7 @@ def all_classes sig { returns(T::Enumerable[Module]) } def all_modules @all_modules ||= T.let( - ObjectSpace.each_object(Module).each, + ObjectSpace.each_object(Module), T.nilable(T::Enumerable[Module]), ) end