From 597f3c7f0aa39c347dad671cf682742b4d40a914 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sat, 17 Jun 2023 17:19:40 +0200 Subject: util.jsonschema: Remove wrapper function This was to silence some Teal warning that seems to have gone away. --- util/jsonschema.lua | 7 ------- 1 file changed, 7 deletions(-) (limited to 'util/jsonschema.lua') diff --git a/util/jsonschema.lua b/util/jsonschema.lua index 96d6547d..eab2d817 100644 --- a/util/jsonschema.lua +++ b/util/jsonschema.lua @@ -43,17 +43,10 @@ local function simple_validate(schema, data) end end -local complex_validate - local function validate(schema, data, root) if type(schema) == "boolean" then return schema - else - return complex_validate(schema, data, root) end -end - -function complex_validate(schema, data, root) if root == nil then root = schema -- cgit v1.2.3