From 2e159a0cc64e8762a46abce084f3c51f4ca6f80b Mon Sep 17 00:00:00 2001 From: Bryan Ashby Date: Sat, 13 Aug 2022 10:36:21 -0600 Subject: [PATCH] Don't call paths.join() twice in a row here --- core/scanner_tossers/ftn_bso.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/core/scanner_tossers/ftn_bso.js b/core/scanner_tossers/ftn_bso.js index 4fa97414..97bd9304 100644 --- a/core/scanner_tossers/ftn_bso.js +++ b/core/scanner_tossers/ftn_bso.js @@ -2793,10 +2793,7 @@ FTNMessageScanTossModule.prototype.startup = function (cb) { ['change', 'add', 'delete'].forEach(event => { watcher.on(event, (fileName, fileRoot) => { const eventPath = paths.join(fileRoot, fileName); - if ( - paths.join(fileRoot, fileName) === - importSchedule.watchFile - ) { + if (eventPath === importSchedule.watchFile) { tryImportNow(makeImportMsg(event, eventPath), { eventPath, event,