From d2a0e6fa2d1dbdc4ef2947b914eee870f7a6d91c Mon Sep 17 00:00:00 2001 From: Ray Schamp Date: Mon, 24 Oct 2016 13:01:57 -0400 Subject: [PATCH] Disable no-useless-call in case of behavior change --- src/engine/execute.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/engine/execute.js b/src/engine/execute.js index 82651613..a0ee8ee9 100644 --- a/src/engine/execute.js +++ b/src/engine/execute.js @@ -207,7 +207,12 @@ var execute = function (sequencer, thread) { // Find the I/O device and execute the query/function call. if (runtime.ioDevices[device] && runtime.ioDevices[device][func]) { var devObject = runtime.ioDevices[device]; - return devObject[func](args); + // @todo Figure out why eslint complains about no-useless-call + // no-useless-call can't tell if the call is useless for dynamic + // expressions... or something. Not exactly sure why it + // complains here. + // eslint-disable-next-line no-useless-call + return devObject[func].call(devObject[func], args); } } });