Update server/libs/nodeFfprobe/index.js

This commit is contained in:
advplyr 2022-09-24 17:36:29 -05:00 committed by GitHub
parent dd0d2e9f55
commit 0f772fd3cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,8 +22,7 @@ module.exports = (function () {
proc.on('error', err => reject(err)) proc.on('error', err => reject(err))
proc.on('close', () => { proc.on('close', () => {
try { try {
let result = JSON.parse(probeData.join('')) resolve(JSON.parse(probeData.join('')))
resolve(result);
} catch (err) { } catch (err) {
reject(err); reject(err);
} }