From f439216db681ae1e5cbcf361694f0d6e406f8725 Mon Sep 17 00:00:00 2001 From: shagu Date: Mon, 4 Aug 2025 09:37:43 +0200 Subject: [PATCH] helpers: remove debug related output in spairs --- helpers.lua | 4 ---- 1 file changed, 4 deletions(-) diff --git a/helpers.lua b/helpers.lua index 75f948d..3c842cb 100644 --- a/helpers.lua +++ b/helpers.lua @@ -326,10 +326,6 @@ local function orderedNext(t, state) end ShaguTweaks.spairs = function(t, sortFunc) - if sortFunc ~= nil and type(sortFunc) ~= "function" then - error("ShaguTweaks.spairs: expected a function for sortFunc, got " .. type(sortFunc)) - end - t.__orderedIndex = __genOrderedIndex(t, sortFunc) return orderedNext, t, nil end