We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9c718a commit 9dbfbaaCopy full SHA for 9dbfbaa
src/MongoDB.Driver/Linq/LinqProvider.cs
@@ -35,14 +35,12 @@ public enum LinqProvider
35
36
internal static class LinqProviderExtensions
37
{
38
- public static LinqProviderAdapter GetAdapter(this LinqProvider linqProvider)
39
- {
40
- return linqProvider switch
+ public static LinqProviderAdapter GetAdapter(this LinqProvider linqProvider) =>
+ linqProvider switch
41
42
LinqProvider.V2 => LinqProviderAdapter.V2,
43
LinqProvider.V3 => LinqProviderAdapter.V3,
44
_ => throw new ArgumentException($"Unknown LINQ provider: {linqProvider}.", nameof(linqProvider))
45
};
46
- }
47
}
48
0 commit comments