derhuerst/read-audio-tags

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

Open

#10 opened on Feb 10, 2023

View on GitHub
 (3 comments) (0 reactions) (1 assignee)JavaScript (2 forks)github user discovery
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)

Contributor guide