Skip to content

Commit 1c7708c

Browse files
committed
Update QueryExecutor.cs
1 parent ba50368 commit 1c7708c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Tests/QueryExecutor.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public static async Task<string> ExecuteQuery(string queryString, Inputs? inputs
2626
var stream = new MemoryStream();
2727
await graphQlSerializer.WriteAsync(stream, result);
2828
stream.Position = 0;
29-
var reader = new StreamReader(stream);
30-
return reader.ReadToEnd();
29+
using var reader = new StreamReader(stream);
30+
return await reader.ReadToEndAsync();
3131
}
3232
}

0 commit comments

Comments
 (0)