Skip to content

Commit

Permalink
Merge pull request #546 from HaveAGitGat/lint-fixes
Browse files Browse the repository at this point in the history
Fix lint errors regarding unused vars
  • Loading branch information
HaveAGitGat authored Nov 15, 2023
2 parents 839d32b + 09ae5a5 commit 4191ed0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions Community/Tdarr_Plugin_JB69_JBHEVCQSV_MinimalFile.js
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ const plugin = (file, librarySettings, inputs, otherArguments) => {
infoLog: '',
};

const currentFileName = file._id; // .replace(/'/g, "'\"'\"'");
// const currentFileName = file._id; // .replace(/'/g, "'\"'\"'");

// Settings
/// ///////////////////////////////////////////////////////////////////////////////////////////////////
Expand Down Expand Up @@ -285,8 +285,7 @@ const plugin = (file, librarySettings, inputs, otherArguments) => {

/// ///////////////////////////////////////////////////////////////////////////////////////////////////

const proc = require('child_process');
let bolStatsAreCurrent = false;
// let bolStatsAreCurrent = false;

if (file.fileMedium !== 'video') {
response.processFile = false;
Expand Down Expand Up @@ -320,7 +319,7 @@ const plugin = (file, librarySettings, inputs, otherArguments) => {

response.infoLog += `JBDate: ${JBDate}, StatsDate: ${datStats}\n`;
if (datStats >= JBDate) {
bolStatsAreCurrent = true;
// bolStatsAreCurrent = true;
}
} else {
const statsThres = Date.parse(new Date(new Date().setDate(new Date().getDate() - intStatsDays)).toISOString());
Expand All @@ -331,7 +330,8 @@ const plugin = (file, librarySettings, inputs, otherArguments) => {
response.infoLog += `StatsThres: ${statsThres}, StatsDate: ${datStats}\n`;
}
if (datStats >= statsThres) {
bolStatsAreCurrent = true;
// eslint-disable-next-line @typescript-eslint/no-unused-vars
// bolStatsAreCurrent = true;
}
}
// No longer needed if updating stats in Tdarr
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ const details = () => ({
],
});

// eslint-disable-next-line no-unused-vars
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const plugin = (file, librarySettings, inputs, otherArguments) => {
const lib = require('../methods/lib')();
// eslint-disable-next-line no-unused-vars,no-param-reassign
Expand Down

0 comments on commit 4191ed0

Please sign in to comment.