From 2ad367828717b42ec11cd7b647527447af9ad172 Mon Sep 17 00:00:00 2001 From: Daniele Di Sarli <danieleds0@gmail.com> Date: Thu, 14 Sep 2017 16:28:11 +0200 Subject: [PATCH] fix eslint --- src/worker.js | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/worker.js b/src/worker.js index d76e761..32db2aa 100644 --- a/src/worker.js +++ b/src/worker.js @@ -4,17 +4,9 @@ const fs = require("fs"), noop = require(path.join(__dirname, "noop.js")), events = /^(error|message)$/; -function trim (arg) { - return arg.replace(/^(\s+|\t+|\n+)|(\s+|\t+|\n+)$/g, ""); -} - -function explode (arg) { - return trim(arg).split(new RegExp("\\s*,\\s*")); -} - function toFunction (arg) { var __worker_evaluated_function_ = null; - eval('__worker_evaluated_function_ = (' + arg + ')') + eval("__worker_evaluated_function_ = (" + arg + ")"); // eslint-disable-line no-eval return __worker_evaluated_function_; } -- GitLab