Skip to content

Commit

Permalink
fix: linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
oscnord committed Dec 12, 2023
1 parent 5ab0c22 commit 2961eb1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/media-event-filter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export type TMediaEventFilter = {
export const getMediaEventFilter = ({
videoElement,
callback,
allowResumeAfterEnded = false
allowResumeAfterEnded = false,
}: TMediaEventFilterOptions): TMediaEventFilter => {
let ratechangeBufferTimeout: number | null = null;

Expand All @@ -116,7 +116,8 @@ export const getMediaEventFilter = ({
...initialState,
};

const isNotReady = (): boolean => allowResumeAfterEnded ? state.loading : state.loading || state.ended;
const isNotReady = (): boolean =>
allowResumeAfterEnded ? state.loading : state.loading || state.ended;

const onCanPlayThrough = (): void => {
if (!state.loading) {
Expand Down

0 comments on commit 2961eb1

Please sign in to comment.