Skip to content

Commit

Permalink
Task.FromResult awaited
Browse files Browse the repository at this point in the history
  • Loading branch information
dmarkle committed Dec 16, 2024
1 parent 3496fac commit 2db73e5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Snowflake.Data/Core/ArrowResultSet.cs
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,9 @@ internal override bool NextResult()
return false;
}

internal override async Task<bool> NextResultAsync(CancellationToken cancellationToken)
internal override Task<bool> NextResultAsync(CancellationToken cancellationToken)
{
return await Task.FromResult(false);
return Task.FromResult(false);
}

internal override bool HasRows()
Expand Down
2 changes: 1 addition & 1 deletion Snowflake.Data/Core/SFBlockingChunkDownloaderV3.cs
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ public async Task<BaseResultChunk> GetNextChunkAsync()
}
else
{
return await Task.FromResult<BaseResultChunk>(null);
return null;
}
}

Expand Down

0 comments on commit 2db73e5

Please sign in to comment.