From a8e0a3088b697b27aca0b0061a30fb90c7ccc20e Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Fri, 30 Jul 2021 19:53:29 +0100 Subject: [PATCH] lru_benchmark: fix luacheck errors --- worldeditadditions/utils/lru_benchmark.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/worldeditadditions/utils/lru_benchmark.lua b/worldeditadditions/utils/lru_benchmark.lua index 0f1d201..4477c70 100644 --- a/worldeditadditions/utils/lru_benchmark.lua +++ b/worldeditadditions/utils/lru_benchmark.lua @@ -16,7 +16,7 @@ local values = { } -- From http://lua-users.org/wiki/SimpleRound -function round(num, numDecimalPlaces) +local function round(num, numDecimalPlaces) local mult = 10^(numDecimalPlaces or 0) return math.floor(num * mult + 0.5) / mult end @@ -37,7 +37,7 @@ end local values_count = #values -function test(size) +local function test(size) local cpu_start = os.clock()