From d5f3ba8d8a6d20655043a43eec08bb9d201e52a7 Mon Sep 17 00:00:00 2001 From: Dave Conway-Jones Date: Fri, 4 Nov 2016 19:55:02 +0000 Subject: [PATCH] remove unnecessary require from JSON node --- nodes/core/parsers/70-JSON.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/nodes/core/parsers/70-JSON.js b/nodes/core/parsers/70-JSON.js index 1bacb16ff..cafe26cf7 100644 --- a/nodes/core/parsers/70-JSON.js +++ b/nodes/core/parsers/70-JSON.js @@ -16,7 +16,6 @@ module.exports = function(RED) { "use strict"; - var util = require("util"); function JSONNode(n) { RED.nodes.createNode(this,n); @@ -36,9 +35,7 @@ module.exports = function(RED) { msg.payload = JSON.stringify(msg.payload); node.send(msg); } - catch(e) { - node.error(RED._("json.errors.dropped-error")); - } + catch(e) { node.error(RED._("json.errors.dropped-error")); } } else { node.warn(RED._("json.errors.dropped-object")); } }