style(rubocop): Style/SafeNavigation

This commit is contained in:
Adam Cooke
2024-02-12 09:40:34 +00:00
parent 04a34831c7
commit 00a02f2655
6 changed files with 17 additions and 23 deletions
+1 -1
View File
@@ -335,7 +335,7 @@ module Postal
# Return the recipient domain for this message
#
def recipient_domain
rcpt_to ? rcpt_to.split("@").last : nil
rcpt_to&.split("@")&.last
end
#
+1 -1
View File
@@ -380,7 +380,7 @@ module Postal
else
idata = idata.to_s.sub(/\A\.\./, ".")
if @credential && @credential.server.log_smtp_data?
if @credential&.server&.log_smtp_data?
# We want to log if enabled
else
log "Not logging further message data."