mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-22 02:58:32 +00:00
Make intersection_e actually raise an exception
This commit is contained in:
parent
07a5ae83b5
commit
0b370bd40d
@ -81,8 +81,7 @@ export class TimeSpan {
|
|||||||
// Like 'sect', but raises an exception if the timespans don't intersect.
|
// Like 'sect', but raises an exception if the timespans don't intersect.
|
||||||
const result = this.intersection(other);
|
const result = this.intersection(other);
|
||||||
if (result == undefined) {
|
if (result == undefined) {
|
||||||
// TODO - raise exception
|
throw 'TimeSpans do not intersect';
|
||||||
// raise ValueError(f'TimeSpan {self} and TimeSpan {other} do not intersect')
|
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user