Fix duplication of id variable (luacheck)

This commit is contained in:
Athozus 2023-04-02 19:01:47 +02:00
parent 030dcf801a
commit 4d9253545a
No known key found for this signature in database
GPG key ID: B50895022E8484BF

View file

@ -47,10 +47,6 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
end
if (fields.to == "" and fields.cc == "" and fields.bcc == "") or fields.body == "" then
-- if mail is invalid then store it as a draft
local id = mail.new_uuid()
if msg_id[name] then
id = msg_id[name]
end
mail.save_draft({
id = id,
from = name,