From 53a4590fec2c5a4dcd7bda7d3e46ad572315f6a6 Mon Sep 17 00:00:00 2001 From: Athozus Date: Sat, 30 Mar 2024 22:00:45 +0100 Subject: [PATCH] Do not give an initial value to candidate_uuid Triggers luacheck because the blank value is unused. Just give it nil value. --- util/uuid.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/uuid.lua b/util/uuid.lua index 54c44c0..851167d 100644 --- a/util/uuid.lua +++ b/util/uuid.lua @@ -27,7 +27,7 @@ end function mail.new_uuid() local template ='xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx' - local candidate_uuid = "" + local candidate_uuid repeat candidate_uuid = string.gsub(template, '[xy]', function (c)