remove redundant error check

This commit is contained in:
clujin
2018-10-07 10:42:42 -07:00
parent 788e907502
commit 02fefd0a81

View File

@@ -131,8 +131,6 @@ function torrentPosterFromAudio (torrent, cb) {
return b
})
if (!bestCover) return cb(new Error('Generated poster contains no data'))
const extname = path.extname(bestCover.file.name)
bestCover.file.getBuffer((err, buf) => cb(err, buf, extname))
}