derhuerst/read-audio-tags

readTags function does not return on cb if (!tags) check is true causing callback to be called twice

Open

#10 ouverte le 10 févr. 2023

Voir sur GitHub
 (3 commentaires) (0 réactions) (1 assigné)JavaScript (2 forks)github user discovery
bughelp wanted

Métriques du dépôt

Stars
 (6 stars)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

index.js line 28 has if (!tags) cb(new Error('ffprobe returned invalid data')) It should be if (!tags) return cb(new Error('ffprobe returned invalid data'))

Otherwise an invalid set of tags will cause cb to be called twice (by the line below this check)

Guide contributeur