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 c459bd9 commit 8b4cef7Copy full SHA for 8b4cef7
src/Common.AspNetCore/RawRequestBodyFormatter.cs
@@ -26,10 +26,7 @@ public RawRequestBodyFormatter()
26
27
public override bool CanRead(InputFormatterContext context)
28
{
29
- if (context == null)
30
- {
31
- throw new ArgumentNullException(nameof(context));
32
- }
+ ArgumentNullException.ThrowIfNull(context);
33
34
var contentType = context.HttpContext.Request.ContentType;
35
return string.IsNullOrEmpty(contentType)
0 commit comments