Skip to content

Commit f49b212

Browse files
Fixed lint errors
1 parent d50545d commit f49b212

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

src/SizedPlayer.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ const parseAspectRatio = (aspectRatio) => {
1212
const ratioArr = aspectRatio.split(':');
1313
const ratio = ratioArr.map(str => Number(str));
1414
if (ratio.length !== 2 || Number.isNaN(ratio[0]) || Number.isNaN(ratio[1])) {
15+
// eslint-disable-next-line
1516
console.warn('Invalid aspect ratio supplied to react-simple-video-player, defaulting to 16:9');
1617
return [16, 9];
1718
}

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ export default class VideoPlayer extends PureComponent {
8181
if (!this.state.playing) {
8282
this.setState({ overlayShown: true });
8383
return;
84-
};
84+
}
8585

8686
this.setState({ overlayShown: false });
8787
};

0 commit comments

Comments
 (0)