summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2021-03-02 21:13:11 +0300
committerEvgeny Zinoviev <me@ch1p.io>2021-03-02 21:13:11 +0300
commit7307003e57eebffbd063c097e2a19e57a79ff05e (patch)
treeac5c2734358cf0214c6d924d3a99242a3adcb88b /src
parent6d8d95ae3f99a471d22dfc1535917002794a9fa8 (diff)
minor
Diffstat (limited to 'src')
-rw-r--r--src/lib/workers-list.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/workers-list.js b/src/lib/workers-list.js
index b27dbf3..67df2f8 100644
--- a/src/lib/workers-list.js
+++ b/src/lib/workers-list.js
@@ -67,6 +67,7 @@ class WorkersList {
*/
poke(targets) {
this.logger.debug('poke:', targets)
+
if (!Array.isArray(targets))
throw new Error('targets must be Array')