Skip to content

Commit e0801b3

Browse files
committed
Fix undef method has_key for module_references.rb tool
I made a typo. Should be has_key?, not has_key
1 parent 5ad30d0 commit e0801b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/modules/module_reference.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def types
8989
filter = val
9090
when "-t"
9191
val = (val || '').upcase
92-
unless types.has_key(val)
92+
unless types.has_key?(val)
9393
puts "Invalid Type Supplied: #{val}"
9494
puts "Please use one of these: #{types.keys.inspect}"
9595
exit

0 commit comments

Comments
 (0)