Diff

util/jsonschema.lua @ 13164:1aa83a5667f9

util.jsonschema: Remove wrapper function This was to silence some Teal warning that seems to have gone away.
author Kim Alvefur <zash@zash.se>
date Sat, 17 Jun 2023 17:19:40 +0200
parent 13163:f43d04653bcf
line wrap: on
line diff
--- a/util/jsonschema.lua	Sat Jun 17 17:17:44 2023 +0200
+++ b/util/jsonschema.lua	Sat Jun 17 17:19:40 2023 +0200
@@ -43,17 +43,10 @@
 	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