مراية لـ
https://github.com/postalserver/postal.git
تم المزامنة 2025-11-30 21:32:30 +00:00
style(rubocop): Lint/DuplicateMethods
هذا الالتزام موجود في:
@@ -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 = []
|
||||
|
||||
المرجع في مشكلة جديدة
حظر مستخدم