Remove redundant curly braces in urlFilename check

This commit is contained in:
Maciej Pędzich 2023-01-28 13:01:08 +01:00
parent 89b6aba98a
commit 0d99a94b55

4
bot.ts
View File

@ -155,9 +155,7 @@ export const bot: ApplicationFunction = (app) => {
let urlEntriesToRenameText = ''; let urlEntriesToRenameText = '';
const urlFilenameEntries = playlistLookupResults.filter( const urlFilenameEntries = playlistLookupResults.filter(
({ found, filename, url }) => { ({ found, filename, url }) => found && filename === url
found && filename === url;
}
); );
if (urlFilenameEntries.length > 0) { if (urlFilenameEntries.length > 0) {