From 5e13a78f3116ff6a28c9ce346d8b824fdf90c65b Mon Sep 17 00:00:00 2001 From: Bryan Ashby Date: Tue, 19 Jul 2016 21:01:25 -0600 Subject: [PATCH] Minor cleanup --- core/scanner_tossers/ftn_bso.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/scanner_tossers/ftn_bso.js b/core/scanner_tossers/ftn_bso.js index 9a30bfd2..3e72b392 100644 --- a/core/scanner_tossers/ftn_bso.js +++ b/core/scanner_tossers/ftn_bso.js @@ -891,11 +891,11 @@ function FTNMessageScanTossModule() { const localNetworkName = self.getNetworkNameByAddress(packetHeader.destAddress); if(!_.isString(localNetworkName)) { - next(new Error('No configuration for this packet')); + return next(new Error('No configuration for this packet')); } else { // :TODO: password needs validated - need to determine if it will use the same node config (which can have wildcards) or something else?! - next(null); + return next(null); } } else if('message' === entryType) { @@ -934,7 +934,7 @@ function FTNMessageScanTossModule() { importStats.areaSuccess[localAreaTag] = (importStats.areaSuccess[localAreaTag] || 0) + 1; } - next(err); + return next(err); }); } else { //