Skip to content

Commit 25f8294

Browse files
committed
code clean up - yagni this is never executed
1 parent a53f591 commit 25f8294

File tree

2 files changed

+23
-312
lines changed

2 files changed

+23
-312
lines changed

SubSonic/Infrastructure/Builders/DbSqlQueryBuilder/DbSqlQueryBuilderAsyncQueryProvider.cs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ public async Task<TResult> ExecuteMethodAsync<TResult>([NotNull] MethodCallExpre
190190
return result;
191191
}
192192

193-
public IAsyncEnumerable<TResult> ExecuteLoadAsync<TResult>([NotNull] MethodCallExpression call, [EnumeratorCancellation] CancellationToken cancellationToken = default)
193+
public IAsyncEnumerable<TResult> ExecuteLoadAsync<TResult>([NotNull] MethodCallExpression call, CancellationToken cancellationToken = default)
194194
{
195195
if (call is null)
196196
{
@@ -254,11 +254,8 @@ public async IAsyncEnumerable<TResult> ExecuteAsync<TResult>([NotNull] Expressio
254254
}
255255
finally
256256
{
257-
#if NETSTANDARD2_1
258257
await Scope.Connection.CloseAsync().ConfigureAwait(true);
259-
#else
260-
Scope.Connection.Close();
261-
#endif
258+
262259
dbQuery.CleanUpParameters();
263260
}
264261
}

0 commit comments

Comments
 (0)