Skip to content

Commit

Permalink
Fix linter problem
Browse files Browse the repository at this point in the history
  • Loading branch information
buzz committed Mar 10, 2021
1 parent 59e0ec7 commit e20724e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/mediainfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ class MediaInfo implements MediaInfoInterface {

if (callback === undefined) {
return new Promise((resolve, reject) =>
this.analyzeData(getSize, readChunk, (result: Result, err) => err ? reject(err) : resolve(result))
this.analyzeData(getSize, readChunk, (result: Result, err) =>
err ? reject(err) : resolve(result)
)
)
}

Expand All @@ -71,7 +73,7 @@ class MediaInfo implements MediaInfoInterface {
return callback('', e)
}
if (dataValue instanceof Promise) {
dataValue.then(readNextChunk).catch(e => callback('', e))
dataValue.then(readNextChunk).catch((e) => callback('', e))
} else {
readNextChunk(dataValue)
}
Expand Down

0 comments on commit e20724e

Please sign in to comment.