mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-06-28 23:30:22 -04:00
Disable no-useless-call in case of behavior change
This commit is contained in:
parent
22bf947ddb
commit
d2a0e6fa2d
1 changed files with 6 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue