1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

JSON schema: remove unused function

This commit is contained in:
Nathanaël Lécaudé 2018-08-29 13:40:37 -04:00
parent 40d81358f4
commit 4cdd7978cf

View File

@ -31,15 +31,6 @@ module.exports = function(RED) {
var node = this;
this.validateMessage = function(msg) {
if (this.compiledSchema(msg[node.property])) {
node.send(msg);
} else {
msg.schemaError = this.compiledSchema.errors;
node.error(`${RED._("json.errors.schema-error")}: ${ajv.errorsText(this.compiledSchema.errors)}`, msg);
}
}
this.on("input", function(msg) {
var validate = false;
if (msg.schema) {