From 8022d52a1c351faebad3e466da00bb51a915a48a Mon Sep 17 00:00:00 2001 From: Mike R Date: Sat, 30 Oct 2021 17:36:05 +0100 Subject: [PATCH] Corrected lint issues --- Community/Tdarr_Plugin_TD01_TOAD_Plex_Autoscan.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Community/Tdarr_Plugin_TD01_TOAD_Plex_Autoscan.js b/Community/Tdarr_Plugin_TD01_TOAD_Plex_Autoscan.js index d960607..c6fdb16 100644 --- a/Community/Tdarr_Plugin_TD01_TOAD_Plex_Autoscan.js +++ b/Community/Tdarr_Plugin_TD01_TOAD_Plex_Autoscan.js @@ -41,15 +41,15 @@ module.exports.details = function details() { module.exports.plugin = function plugin(file, librarySettings, inputs) { // eslint-disable-next-line global-require,import/no-unresolved const request = require('request'); - // Set up required variables. const ADDRESS = inputs.autoscan_address; const PORT = inputs.autoscan_port; - + let file2 = ''; + let filepath = ''; const response = {}; filepath = `${file.file}`; - var file2 = filepath.split("/").slice(0, -1).join("/")+"/"; + file2 = `${filepath.split('/').slice(0, -1).join('/')}/`; // Check if all inputs have been configured. If they haven't then exit plugin. if ( @@ -86,4 +86,4 @@ module.exports.plugin = function plugin(file, librarySettings, inputs) { console.log(request.post); return undefined; -}; \ No newline at end of file +};