Skip to content

Commit e7a2046

Browse files
refactor max_actual_arguments for clarity
1 parent c01010a commit e7a2046

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

lib/code/type/sig.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,11 @@ def min_actual_arguments
6767

6868
def max_actual_arguments
6969
actual_arguments.sum do |argument|
70-
argument.is_an?(Object::Dictionary) ? [1, argument.code_size.raw].max : 1
70+
if argument.is_an?(Object::Dictionary)
71+
[1, argument.code_size.raw].max
72+
else
73+
1
74+
end
7175
end
7276
end
7377

0 commit comments

Comments
 (0)