diff --git a/src/js/utils/time.js b/src/js/utils/time.js index 408bea08f..b6f7c4447 100644 --- a/src/js/utils/time.js +++ b/src/js/utils/time.js @@ -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]]);