Fix luacheck (2)

This commit is contained in:
Athozus 2023-03-31 17:15:55 +02:00
parent ac4fc42ef3
commit bf7986e5f7
No known key found for this signature in database
GPG key ID: B50895022E8484BF

View file

@ -63,13 +63,13 @@ function mail.send(m)
m.from, m.to, extra_log, m.subject, m.body
))
local id = mail.new_uuid()
if m.id then
mail.delete_mail(m.from, m.id)
id = m.id
end
-- form the actual mail
local msg = {
id = id,
@ -135,7 +135,7 @@ function mail.save_draft(m)
mail.delete_mail(m.from, m.id)
id = m.id
end
-- add (again ie. update) in sender drafts
local entry = mail.get_storage_entry(m.from)
table.insert(entry.drafts, 1, {