removed unused code

This commit is contained in:
Akinwale Ariwodola 2017-07-06 18:42:39 +01:00
parent ee002597fc
commit f61a8a4372

View file

@ -137,13 +137,11 @@ class VideoPlayer extends React.PureComponent {
file() { file() {
const { downloadPath, filename } = this.props; const { downloadPath, filename } = this.props;
const stat = fs.statSync(downloadPath);
return { return {
name: filename, name: filename,
createReadStream: opts => { createReadStream: opts => {
return fs.createReadStream(downloadPath, opts); return fs.createReadStream(downloadPath, opts);
}, },
length: stat.size,
}; };
} }
*playableType() { *playableType() {