مراية لـ
https://github.com/postalserver/postal.git
تم المزامنة 2025-11-30 21:32:30 +00:00
style(rubocop): Style/AndOr
هذا الالتزام موجود في:
@@ -22,7 +22,7 @@ module Mail
|
|||||||
|
|
||||||
## Extract plain text body of message
|
## Extract plain text body of message
|
||||||
def plain_body
|
def plain_body
|
||||||
if multipart? and text_part
|
if multipart? && text_part
|
||||||
text_part.decoded
|
text_part.decoded
|
||||||
elsif mime_type == "text/plain" || mime_type.nil?
|
elsif mime_type == "text/plain" || mime_type.nil?
|
||||||
decoded
|
decoded
|
||||||
@@ -31,7 +31,7 @@ module Mail
|
|||||||
|
|
||||||
## Extract HTML text body of message
|
## Extract HTML text body of message
|
||||||
def html_body
|
def html_body
|
||||||
if multipart? and html_part
|
if multipart? && html_part
|
||||||
html_part.decoded
|
html_part.decoded
|
||||||
elsif mime_type == "text/html"
|
elsif mime_type == "text/html"
|
||||||
decoded
|
decoded
|
||||||
@@ -116,7 +116,7 @@ module Mail
|
|||||||
@parts_list = parts_list
|
@parts_list = parts_list
|
||||||
@content_disposition_type = "attachment"
|
@content_disposition_type = "attachment"
|
||||||
parts_list.map do |p|
|
parts_list.map do |p|
|
||||||
(p.parts.empty? and p.attachment?) ? p : p.attachments
|
p.parts.empty? && p.attachment? ? p : p.attachments
|
||||||
end.flatten.compact.each { |a| self << a }
|
end.flatten.compact.each { |a| self << a }
|
||||||
self
|
self
|
||||||
end
|
end
|
||||||
|
|||||||
المرجع في مشكلة جديدة
حظر مستخدم