From 2db73e534880d35200278d6a674eab0f730e225e Mon Sep 17 00:00:00 2001 From: David Markle Date: Mon, 16 Dec 2024 13:28:53 -0500 Subject: [PATCH] Task.FromResult awaited --- Snowflake.Data/Core/ArrowResultSet.cs | 4 ++-- Snowflake.Data/Core/SFBlockingChunkDownloaderV3.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Snowflake.Data/Core/ArrowResultSet.cs b/Snowflake.Data/Core/ArrowResultSet.cs index 178531eaf..3c7132f15 100755 --- a/Snowflake.Data/Core/ArrowResultSet.cs +++ b/Snowflake.Data/Core/ArrowResultSet.cs @@ -121,9 +121,9 @@ internal override bool NextResult() return false; } - internal override async Task NextResultAsync(CancellationToken cancellationToken) + internal override Task NextResultAsync(CancellationToken cancellationToken) { - return await Task.FromResult(false); + return Task.FromResult(false); } internal override bool HasRows() diff --git a/Snowflake.Data/Core/SFBlockingChunkDownloaderV3.cs b/Snowflake.Data/Core/SFBlockingChunkDownloaderV3.cs index 2e19146aa..5b3c1b0ca 100755 --- a/Snowflake.Data/Core/SFBlockingChunkDownloaderV3.cs +++ b/Snowflake.Data/Core/SFBlockingChunkDownloaderV3.cs @@ -129,7 +129,7 @@ public async Task GetNextChunkAsync() } else { - return await Task.FromResult(null); + return null; } }