Skip to content

Commit

Permalink
Linting is hard
Browse files Browse the repository at this point in the history
  • Loading branch information
aunefyren committed Oct 4, 2023
1 parent 3cf7c9c commit aa80635
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,9 @@ const plugin = (file, librarySettings, inputs, otherArguments) => {
for (let i = 0; i < file.ffProbeData.streams.length; i += 1) {
try {
// Skip if the codec_type is filtered out
if(
codecTypeFilter.length !== 0 &&
!codecTypeFilter.includes(String(file.ffProbeData.streams[i].codec_type))
) {
if (
codecTypeFilter.length !== 0
&& !codecTypeFilter.includes(String(file.ffProbeData.streams[i].codec_type))) {
continue;

Check failure on line 122 in Community/Tdarr_Plugin_00td_action_remove_stream_by_specified_property.js

View workflow job for this annotation

GitHub Actions / build (18.x, ubuntu-20.04)

Unexpected use of continue statement
}

Expand All @@ -130,7 +129,9 @@ const plugin = (file, librarySettings, inputs, otherArguments) => {
response.infoLog += `DEBUG: stream ${i} property for ${removeIfPropertyMissing[j]}
is ${file.ffProbeData.streams[i][removeIfPropertyMissing[j]]} \n`;

if (file.ffProbeData.streams[i][removeIfPropertyMissing[j]] === 'undefined' || file.ffProbeData.streams[i][removeIfPropertyMissing[j]] === null) {
if (
file.ffProbeData.streams[i][removeIfPropertyMissing[j]] === 'undefined'
|| file.ffProbeData.streams[i][removeIfPropertyMissing[j]] === null) {
emptyValue = true;
response.infoLog += ` Removing stream ${i} which is has ${removeIfPropertyMissing[j]} missing`;
break;
Expand Down

0 comments on commit aa80635

Please sign in to comment.