From 4d9253545af966281e4534d6c5b8587b3fbe5e05 Mon Sep 17 00:00:00 2001 From: Athozus Date: Sun, 2 Apr 2023 19:01:47 +0200 Subject: [PATCH] Fix duplication of id variable (luacheck) --- ui/compose.lua | 4 ---- 1 file changed, 4 deletions(-) diff --git a/ui/compose.lua b/ui/compose.lua index 06080f5..fa41e05 100644 --- a/ui/compose.lua +++ b/ui/compose.lua @@ -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,