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