derhuerst/read-audio-tags
View on GitHubreadTags function does not return on cb if (!tags) check is true causing callback to be called twice
Open
#10 opened on Feb 10, 2023
bughelp wanted
Repository metrics
- Stars
- (6 stars)
- PR merge metrics
- (No merged PRs in 30d)
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)