Skip to content

Commit 7e9c140

Browse files
committed
Remove FIXME and update comment
1 parent e8e6a40 commit 7e9c140

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/core/action.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export class Action<T> extends ScheduledTrigger<T> implements Read<T> {
7070

7171
schedule(extraDelay: 0 | TimeValue, value: T, intendedTag?: Tag): void {
7272
if (!(extraDelay instanceof TimeValue)) {
73-
extraDelay = TimeValue.secs(0);
73+
extraDelay = TimeValue.zero();
7474
}
7575

7676
let tag = this.action.runtime.util.getCurrentTag();

src/core/time.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -462,14 +462,12 @@ export class Tag {
462462
* Get a new time instant that represents this time instant plus
463463
* the given delay. The `microstep` of this time instant is ignored;
464464
* the returned time instant has a `microstep` of zero if the delay
465-
* is greater than zero. If the delay equals zero, the tag is returned
466-
* unchanged with its current `microstep`. If the delay is undefined,
467-
* the tag is returned as it was.
465+
* is greater than zero. If the delay equals zero or is undefined,
466+
* the tag is returned unchanged with its current `microstep`.
468467
* @param delay The time interval to add to this time instant.
469468
*/
470469
getLaterTag(delay: TimeValue | undefined): Tag {
471470
if (delay === undefined || delay.isZero()) {
472-
// FIXME: Should a tag + zero returns one microstep after the tag?
473471
return this;
474472
} else {
475473
return new Tag(delay.add(this.time), 0);

0 commit comments

Comments
 (0)