1
0
مراية لـ https://github.com/postalserver/postal.git تم المزامنة 2026-01-16 21:23:37 +00:00

style(rubocop): Lint/DuplicateMethods

هذا الالتزام موجود في:
Adam Cooke
2024-02-10 23:30:24 +00:00
الأصل a1dc0f77ac
التزام bab6346239
2 ملفات معدلة مع 4 إضافات و0 حذوفات

عرض الملف

@@ -31,6 +31,7 @@ class IncomingMessagePrototype
end end
end end
# rubocop:disable Lint/DuplicateMethods
def attachments def attachments
(@attachments || []).map do |attachment| (@attachments || []).map do |attachment|
{ {
@@ -40,6 +41,7 @@ class IncomingMessagePrototype
} }
end end
end end
# rubocop:enable Lint/DuplicateMethods
def create_messages def create_messages
if valid? if valid?

عرض الملف

@@ -93,6 +93,7 @@ class OutgoingMessagePrototype
@errors || {} @errors || {}
end end
# rubocop:disable Lint/DuplicateMethods
def attachments def attachments
(@attachments || []).map do |attachment| (@attachments || []).map do |attachment|
{ {
@@ -102,6 +103,7 @@ class OutgoingMessagePrototype
} }
end end
end end
# rubocop:enable Lint/DuplicateMethods
def validate def validate
@errors = [] @errors = []