Skip to content

Commit 694aa26

Browse files
committed
Format code
1 parent a0316fd commit 694aa26

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

packages/graphql/lib/src/links/websocket_link/websocket_client.dart

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -637,9 +637,10 @@ class GraphQLWebSocketChannel extends StreamChannelMixin<dynamic>
637637

638638
/// Stream of messages from the endpoint parsed as GraphQLSocketMessages
639639
Stream<GraphQLSocketMessage> get messages {
640-
if (_messages == null) _messages = stream.map((event) {
641-
return GraphQLSocketMessage.parse(event);
642-
}).asBroadcastStream();
640+
if (_messages == null)
641+
_messages = stream.map((event) {
642+
return GraphQLSocketMessage.parse(event);
643+
}).asBroadcastStream();
643644

644645
return _messages!;
645646
}

0 commit comments

Comments
 (0)