Skip to content

Commit

Permalink
chore: fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
dzianis-dashkevich committed Nov 21, 2024
1 parent 604a643 commit fd15e60
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/segment-loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -1104,7 +1104,6 @@ export default class SegmentLoader extends videojs.EventTarget {
return;
}


if (this.playlist_ &&
this.playlist_.endList &&
newPlaylist.endList &&
Expand Down
4 changes: 3 additions & 1 deletion test/playlist-controller.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -726,7 +726,9 @@ QUnit.test('resets everything for a fast quality change then calls load', functi

segmentLoader.remove = (start, end, doneFn) => {
assert.equal(end, Infinity, 'on a remove all, end should be Infinity');
doneFn && doneFn();
if (doneFn) {
doneFn();
}
origRemove.call(segmentLoader, start, end, doneFn);
};

Expand Down

0 comments on commit fd15e60

Please sign in to comment.