From 1031749311b931bd3002c844937b52219aed2775 Mon Sep 17 00:00:00 2001 From: Adhidarma Hadiwinoto <me@adhisimon.org> Date: Thu, 5 Dec 2019 18:28:29 +0700 Subject: [PATCH] Deprecating enabledModems --- lib/modems.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/modems.js b/lib/modems.js index d6f90d6..8f3ebc8 100644 --- a/lib/modems.js +++ b/lib/modems.js @@ -12,6 +12,9 @@ exports.modemsDictionary = (arrayOfModem) => { return retval; }; +/** + * deprecated + */ exports.enabledModems = (arrayOfModem) => { const modems = arrayOfModem || config.modems || []; return modems.filter((modem) => !modem.disabled); @@ -19,7 +22,7 @@ exports.enabledModems = (arrayOfModem) => { exports.outgoingModems = (arrayOfModem) => { const modems = arrayOfModem || config.modems || []; - return modems.filter((modem) => !modem.disabled && modem.outgoing); + return modems.filter((modem) => modem.outgoing); }; exports.randomModem = (arrayOfModem) => { -- 1.9.0