Skip to content

Commit 1b68cfb

Browse files
committed
Review feedback.
1 parent 9a03b96 commit 1b68cfb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/MongoDB.Driver/Linq/Linq3Implementation/Translators/ExpressionToExecutableQueryTranslators/AverageMethodToExecutableQueryTranslator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ public static ExecutableQuery<TDocument, TOutput> Translate<TDocument>(MongoQuer
161161
return ExecutableQuery.Create(
162162
provider,
163163
pipeline,
164-
!returnType.IsValueType || returnType.IsNullable()
164+
returnType.IsNullable() // Note: numeric types are never reference types
165165
? __singleOrDefaultFinalizer
166166
: __singleFinalizer);
167167
}

0 commit comments

Comments
 (0)