Skip to content

Commit f45fd34

Browse files
committed
Fix isContained logic
1 parent dcc8c50 commit f45fd34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

webdriver-ts/src/timeline.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ interface Timingresult {
282282
timingResult: Timingresult
283283
}
284284
function isContained(testIv: Interval, otherIv: Interval) {
285-
return intervals.some(() => testIv.start>=otherIv.start && testIv.end<=otherIv.end);
285+
return testIv.start>=otherIv.start && testIv.end<=otherIv.end;
286286
}
287287
function newContainedInterval(outer: Timingresult, intervals: Array<Interval>) {
288288
let outerIv = {start: outer.ts, end: outer.end, timingResult: outer};

0 commit comments

Comments
 (0)