Skip to content

Commit 0ed6b94

Browse files
committed
chore(animationFrameScheduler): minor code improvement
1 parent be643db commit 0ed6b94

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/internal/scheduler/AnimationFrameScheduler.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ export class AnimationFrameScheduler extends AsyncScheduler {
1414
// scheduled to be executed in a subsequent flush into positions at which
1515
// they are executed within the current flush.
1616
let flushId;
17-
if (action?.id) {
18-
flushId = action?.id;
17+
if (action) {
18+
flushId = action.id;
1919
} else {
2020
flushId = this._scheduled;
2121
this._scheduled = undefined;

0 commit comments

Comments
 (0)