Skip to content

Commit 9dbfbaa

Browse files
committed
CSHARP-3903: Code review changes.
1 parent d9c718a commit 9dbfbaa

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/MongoDB.Driver/Linq/LinqProvider.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,12 @@ public enum LinqProvider
3535

3636
internal static class LinqProviderExtensions
3737
{
38-
public static LinqProviderAdapter GetAdapter(this LinqProvider linqProvider)
39-
{
40-
return linqProvider switch
38+
public static LinqProviderAdapter GetAdapter(this LinqProvider linqProvider) =>
39+
linqProvider switch
4140
{
4241
LinqProvider.V2 => LinqProviderAdapter.V2,
4342
LinqProvider.V3 => LinqProviderAdapter.V3,
4443
_ => throw new ArgumentException($"Unknown LINQ provider: {linqProvider}.", nameof(linqProvider))
4544
};
46-
}
4745
}
4846
}

0 commit comments

Comments
 (0)