Skip to content

Commit f9c9af8

Browse files
committed
Fix Performance/MethodObjectAsBlock offense
There is no auto-correction for this offense, so it has been fixed manually Ref: https://github.com/fastruby/fast-ruby#normal-way-to-apply-method-vs-method-code
1 parent 85c133b commit f9c9af8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ruby_llm/content.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def process_attachments_array_or_string(attachments)
4343
def process_attachments(attachments)
4444
if attachments.is_a?(Hash)
4545
# Ignores types (like :image, :audio, :text, :pdf) since we have robust MIME type detection
46-
attachments.each_value(&method(:process_attachments_array_or_string))
46+
attachments.each_value { |attachment| process_attachments_array_or_string(attachment) }
4747
else
4848
process_attachments_array_or_string attachments
4949
end

0 commit comments

Comments
 (0)