mirror of
https://github.com/maciejpedzich/playlist-entry-validator.git
synced 2024-11-28 00:15:48 +01:00
Remove redundant curly braces in urlFilename check
This commit is contained in:
parent
89b6aba98a
commit
0d99a94b55
4
bot.ts
4
bot.ts
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user