Skip to content

Commit 29f6912

Browse files
alan-agius4AndrewKushnir
authored andcommitted
refactor(animations): remove redundant castings (#50860)
This commit removes unnecessary castings. PR Close #50860
1 parent 0380564 commit 29f6912

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

packages/animations/browser/src/render/animation_engine_next.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,10 @@ export class AnimationEngine {
106106
}
107107

108108
get players(): AnimationPlayer[] {
109-
return (this._transitionEngine.players as AnimationPlayer[])
110-
.concat(this._timelineEngine.players as AnimationPlayer[]);
109+
return [
110+
...this._transitionEngine.players,
111+
...this._timelineEngine.players,
112+
];
111113
}
112114

113115
whenRenderingDone(): Promise<any> {

0 commit comments

Comments
 (0)