style(rubocop): Lint/UnusedBlockArgument

This commit is contained in:
Adam Cooke
2024-02-10 17:20:13 +00:00
parent 7590a46234
commit ee94e4e1a0
8 changed files with 9 additions and 9 deletions
+2 -2
View File
@@ -553,14 +553,14 @@ module Postal
private
def _update
@database.update("messages", @attributes.reject { |k, v| k == :id }, where: { id: @attributes["id"] })
@database.update("messages", @attributes.reject { |k, _| k == :id }, where: { id: @attributes["id"] })
end
def _create
self.timestamp = Time.now.to_f if timestamp.blank?
self.status = "Pending" if status.blank?
self.token = Nifty::Utils::RandomString.generate(length: 12) if token.blank?
last_id = @database.insert("messages", @attributes.reject { |k, v| k == :id })
last_id = @database.insert("messages", @attributes.reject { |k, _| k == :id })
@attributes["id"] = last_id
@database.statistics.increment_all(timestamp, scope)
Statistic.global.increment!(:total_messages)
+1 -1
View File
@@ -188,7 +188,7 @@ module Postal
authenticate(password)
end
username_handler = proc do |data|
username_handler = proc do
@proc = password_handler
@password_expected_next = true
"334 UGFzc3dvcmQ6" # "Password:"