1
0
مراية لـ https://github.com/postalserver/postal.git تم المزامنة 2025-11-30 21:32:30 +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
# rubocop:disable Lint/DuplicateMethods
def attachments
(@attachments || []).map do |attachment|
{
@@ -40,6 +41,7 @@ class IncomingMessagePrototype
}
end
end
# rubocop:enable Lint/DuplicateMethods
def create_messages
if valid?

عرض الملف

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