Skip to content

Commit ff71f5d

Browse files
committed
fix(graphql): Minor formatting issues
1 parent 20e5e3b commit ff71f5d

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

packages/graphql/lib/src/core/query_options.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ class FetchMoreOptions {
324324
}
325325

326326
/// merge fetchMore result data with earlier result data
327-
typedef Map<String, dynamic>? UpdateQuery(
327+
typedef UpdateQuery = Map<String, dynamic>? Function(
328328
Map<String, dynamic>? previousResultData,
329329
Map<String, dynamic>? fetchMoreResultData,
330330
);

packages/graphql/lib/src/utilities/platform_html.dart

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ Future<WebSocketChannel> defaultConnectPlatform(
77
if (headers != null) {
88
print("The headers on the web are not supported");
99
}
10-
final webSocketChannel =
11-
await WebSocketChannel.connect(uri, protocols: protocols);
10+
final webSocketChannel = WebSocketChannel.connect(
11+
uri,
12+
protocols: protocols,
13+
);
1214
return webSocketChannel.forGraphQL();
1315
}

0 commit comments

Comments
 (0)