From 721b04753a9e83e7815f694542b65db1f0eaea4d Mon Sep 17 00:00:00 2001 From: Hiroshi Horie <548776+hiroshihorie@users.noreply.github.com> Date: Thu, 28 Oct 2021 15:56:15 +0900 Subject: [PATCH] remove unnecessary cast --- lib/src/participant/remote_participant.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/participant/remote_participant.dart b/lib/src/participant/remote_participant.dart index 5c3e047..9f60e9d 100644 --- a/lib/src/participant/remote_participant.dart +++ b/lib/src/participant/remote_participant.dart @@ -73,7 +73,7 @@ class RemoteParticipant extends Participant { reason: TrackSubscribeFailReason.notTrackMetadataFound, ), ); - pub = event.publication as RemoteTrackPublication; + pub = event.publication; logger.fine('addSubscribedMediaTrack() did receive pub'); }