mirror of
https://github.com/videojs/video.js.git
synced 2025-07-13 01:30:17 +02:00
Refactor createTimeRanges in utils/time.js
This commit is contained in:
@ -141,7 +141,7 @@ function createTimeRangesObj(ranges) {
|
||||
export function createTimeRanges(start, end) {
|
||||
if (Array.isArray(start)) {
|
||||
return createTimeRangesObj(start);
|
||||
} else if (start === undefined || end === undefined) {
|
||||
} if (start === undefined || end === undefined) {
|
||||
return createTimeRangesObj();
|
||||
}
|
||||
return createTimeRangesObj([[start, end]]);
|
||||
|
Reference in New Issue
Block a user