Skip to content

Commit

Permalink
Merge pull request #2248 from mame/fix-for-strict_unused_block
Browse files Browse the repository at this point in the history
Prevent a warning: the block passed to 'map_type_name' .. may be ignored
  • Loading branch information
soutaro authored Jan 24, 2025
2 parents eee1d1c + 050e207 commit 0c70720
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/rbs/types.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def sub(s)
end

module NoTypeName
def map_type_name
def map_type_name(&)
self
end
end
Expand Down Expand Up @@ -229,7 +229,7 @@ def to_s(level = 0)

include EmptyEachType

def map_type_name
def map_type_name(&)
ClassSingleton.new(
name: yield(name, location, self),
location: location
Expand Down

0 comments on commit 0c70720

Please sign in to comment.