Don't call paths.join() twice in a row here

This commit is contained in:
Bryan Ashby 2022-08-13 10:36:21 -06:00
parent 1d14b187c2
commit 2e159a0cc6
No known key found for this signature in database
GPG Key ID: C2C1B501E4EFD994
1 changed files with 1 additions and 4 deletions

View File

@ -2793,10 +2793,7 @@ FTNMessageScanTossModule.prototype.startup = function (cb) {
['change', 'add', 'delete'].forEach(event => { ['change', 'add', 'delete'].forEach(event => {
watcher.on(event, (fileName, fileRoot) => { watcher.on(event, (fileName, fileRoot) => {
const eventPath = paths.join(fileRoot, fileName); const eventPath = paths.join(fileRoot, fileName);
if ( if (eventPath === importSchedule.watchFile) {
paths.join(fileRoot, fileName) ===
importSchedule.watchFile
) {
tryImportNow(makeImportMsg(event, eventPath), { tryImportNow(makeImportMsg(event, eventPath), {
eventPath, eventPath,
event, event,