removed additional unused code

This commit is contained in:
Akinwale Ariwodola 2017-07-06 18:44:52 +01:00
parent f61a8a4372
commit 913d642b52

View file

@ -137,6 +137,7 @@ class VideoPlayer extends React.PureComponent {
file() { file() {
const { downloadPath, filename } = this.props; const { downloadPath, filename } = this.props;
return { return {
name: filename, name: filename,
createReadStream: opts => { createReadStream: opts => {
@ -144,7 +145,8 @@ class VideoPlayer extends React.PureComponent {
}, },
}; };
} }
*playableType() {
playableType() {
const { mediaType } = this.props; const { mediaType } = this.props;
return ["audio", "video"].indexOf(mediaType) !== -1; return ["audio", "video"].indexOf(mediaType) !== -1;