From d4a8d70397bdbe9974a6c900e29f878d90aab05e Mon Sep 17 00:00:00 2001 From: Kevin Moore Date: Wed, 22 Nov 2023 13:32:12 -0800 Subject: [PATCH] Small tweak (#295) --- lib/html.dart | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/html.dart b/lib/html.dart index 2263e6e..6b3ea6e 100644 --- a/lib/html.dart +++ b/lib/html.dart @@ -78,10 +78,7 @@ class HtmlWebSocketChannel extends StreamChannelMixin : this( WebSocket( url.toString(), - (protocols?.toList() ?? const []) - .map((e) => e.toJS) - .toList() - .toJS, + protocols?.map((e) => e.toJS).toList().toJS ?? JSArray(), )..binaryType = (binaryType ?? BinaryType.list).value, );