diff --git a/server/libs/nodeFfprobe/index.js b/server/libs/nodeFfprobe/index.js index ec52ef2a..e082d7a5 100644 --- a/server/libs/nodeFfprobe/index.js +++ b/server/libs/nodeFfprobe/index.js @@ -21,13 +21,13 @@ module.exports = (function () { proc.on('exit', code => { exitCode = code }) proc.on('error', err => reject(err)) proc.on('close', () => { - try { - let result = JSON.parse(probeData.join('')) - resolve(result); - } catch (err) { - reject(err); - } - }) + try { + let result = JSON.parse(probeData.join('')) + resolve(result); + } catch (err) { + reject(err); + } + }) }) }