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