Skip to content

Commit 0c70720

Browse files
authored
Merge pull request #2248 from mame/fix-for-strict_unused_block
Prevent a warning: the block passed to 'map_type_name' .. may be ignored
2 parents eee1d1c + 050e207 commit 0c70720

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/rbs/types.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def sub(s)
1515
end
1616

1717
module NoTypeName
18-
def map_type_name
18+
def map_type_name(&)
1919
self
2020
end
2121
end
@@ -229,7 +229,7 @@ def to_s(level = 0)
229229

230230
include EmptyEachType
231231

232-
def map_type_name
232+
def map_type_name(&)
233233
ClassSingleton.new(
234234
name: yield(name, location, self),
235235
location: location

0 commit comments

Comments
 (0)