Skip to content
Snippets Groups Projects
Commit 2ad36782 authored by Daniele Di Sarli's avatar Daniele Di Sarli
Browse files

fix eslint

parent 70ce2ba0
No related branches found
No related tags found
No related merge requests found
......@@ -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_;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment