File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
src/libraries/System.Net.Requests/src/System/Net Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -1386,7 +1386,7 @@ dotnet_diagnostic.IDE0028.severity = suggestion
13861386dotnet_diagnostic.IDE0029.severity = warning
13871387
13881388# IDE0030: Use coalesce expression
1389- dotnet_diagnostic.IDE0030.severity = suggestion
1389+ dotnet_diagnostic.IDE0030.severity = warning
13901390
13911391# IDE0031: Use null propagation
13921392dotnet_diagnostic.IDE0031.severity = silent
Original file line number Diff line number Diff line change @@ -80,8 +80,7 @@ public override long ContentLength
8080 get
8181 {
8282 CheckDisposed ( ) ;
83- long ? length = _httpResponseMessage . Content ? . Headers . ContentLength ;
84- return length . HasValue ? length . Value : - 1 ;
83+ return _httpResponseMessage . Content ? . Headers . ContentLength ?? - 1 ;
8584 }
8685 }
8786
You can’t perform that action at this time.
0 commit comments