From 141350ad5466d8f3d908cff16df440a9d415a277 Mon Sep 17 00:00:00 2001 From: ndelanou Date: Thu, 19 Dec 2024 14:11:24 +0100 Subject: [PATCH] fix format --- packages/graphql/lib/src/core/query_manager.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/graphql/lib/src/core/query_manager.dart b/packages/graphql/lib/src/core/query_manager.dart index 2bd95e95..263d4cfc 100644 --- a/packages/graphql/lib/src/core/query_manager.dart +++ b/packages/graphql/lib/src/core/query_manager.dart @@ -265,7 +265,8 @@ class QueryManager { // Resolve the request timeout by first checking the options of this specific request, // then the manager level requestTimeout. // Only apply the timeout if it is non-null. - if (options.queryRequestTimeout ?? this.requestTimeout case final Duration timeout) { + final timeout = options.queryRequestTimeout ?? this.requestTimeout; + if (timeout case final Duration timeout) { responseStream = responseStream.timeout(timeout); } response = await responseStream.first;