Skip to content

Commit 141350a

Browse files
committed
fix format
1 parent 6a1003e commit 141350a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,8 @@ class QueryManager {
265265
// Resolve the request timeout by first checking the options of this specific request,
266266
// then the manager level requestTimeout.
267267
// Only apply the timeout if it is non-null.
268-
if (options.queryRequestTimeout ?? this.requestTimeout case final Duration timeout) {
268+
final timeout = options.queryRequestTimeout ?? this.requestTimeout;
269+
if (timeout case final Duration timeout) {
269270
responseStream = responseStream.timeout(timeout);
270271
}
271272
response = await responseStream.first;

0 commit comments

Comments
 (0)