Skip to content

Commit

Permalink
style(rubocop): Lint/MissingSuper
Browse files Browse the repository at this point in the history
  • Loading branch information
adamcooke committed Feb 12, 2024
1 parent be97f43 commit 4674e63
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions app/models/concerns/has_authentication.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ class Postal::Errors::AuthenticationError < Postal::Error
attr_reader :error

def initialize(error)
super()
@error = error
end

Expand Down
2 changes: 2 additions & 0 deletions config/initializers/mail_extensions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ def decode_body_as_text
# Handle attached emails as attachments
class AttachmentsList < Array

# rubocop:disable Lint/MissingSuper
def initialize(parts_list)
@parts_list = parts_list
@content_disposition_type = "attachment"
Expand All @@ -119,6 +120,7 @@ def initialize(parts_list)
end.flatten.compact.each { |a| self << a }
self
end
# rubocop:enable Lint/MissingSuper

end

Expand Down
1 change: 1 addition & 0 deletions lib/postal/http_sender.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ module Postal
class HTTPSender < Sender

def initialize(endpoint, options = {})
super()
@endpoint = endpoint
@options = options
@log_id = Nifty::Utils::RandomString.generate(length: 8).upcase
Expand Down
5 changes: 3 additions & 2 deletions lib/postal/smtp_sender.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ module Postal
class SMTPSender < Sender

def initialize(domain, source_ip_address, options = {})
super()
@domain = domain
@source_ip_address = source_ip_address
@options = options
Expand Down Expand Up @@ -143,9 +144,9 @@ def send_message(message, force_rcpt_to = nil)
mail_from = "#{message.server.token}@#{Postal.config.dns.return_path}"
end
if Postal.config.general.use_resent_sender_header
raw_message = "Resent-Sender: #{mail_from}\r\n" + message.raw_message
raw_message = "Resent-Sender: #{mail_from}\r\n" + message.raw_message
else
raw_message = message.raw_message
raw_message = message.raw_message
end
tries = 0
begin
Expand Down

0 comments on commit 4674e63

Please sign in to comment.