Skip to content

Commit 46437fd

Browse files
committed
Remove unnecessary null checks
1 parent 0d6f97e commit 46437fd

File tree

3 files changed

+34
-4
lines changed

3 files changed

+34
-4
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
Microsoft Visual Studio Solution File, Format Version 12.00
2+
# Visual Studio Version 17
3+
VisualStudioVersion = 17.5.2.0
4+
MinimumVisualStudioVersion = 10.0.40219.1
5+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.AspNetCore.Mvc.ApiExplorer.Test", "test\Microsoft.AspNetCore.Mvc.ApiExplorer.Test.csproj", "{B063A27B-F6DE-3734-64D8-302F23449102}"
6+
EndProject
7+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.AspNetCore.Mvc.ApiExplorer", "src\Microsoft.AspNetCore.Mvc.ApiExplorer.csproj", "{548A6F46-FE70-02B8-27CC-DE23693D4AFF}"
8+
EndProject
9+
Global
10+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
11+
Debug|Any CPU = Debug|Any CPU
12+
Release|Any CPU = Release|Any CPU
13+
EndGlobalSection
14+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
15+
{B063A27B-F6DE-3734-64D8-302F23449102}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
16+
{B063A27B-F6DE-3734-64D8-302F23449102}.Debug|Any CPU.Build.0 = Debug|Any CPU
17+
{B063A27B-F6DE-3734-64D8-302F23449102}.Release|Any CPU.ActiveCfg = Release|Any CPU
18+
{B063A27B-F6DE-3734-64D8-302F23449102}.Release|Any CPU.Build.0 = Release|Any CPU
19+
{548A6F46-FE70-02B8-27CC-DE23693D4AFF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
20+
{548A6F46-FE70-02B8-27CC-DE23693D4AFF}.Debug|Any CPU.Build.0 = Debug|Any CPU
21+
{548A6F46-FE70-02B8-27CC-DE23693D4AFF}.Release|Any CPU.ActiveCfg = Release|Any CPU
22+
{548A6F46-FE70-02B8-27CC-DE23693D4AFF}.Release|Any CPU.Build.0 = Release|Any CPU
23+
EndGlobalSection
24+
GlobalSection(SolutionProperties) = preSolution
25+
HideSolutionNode = FALSE
26+
EndGlobalSection
27+
GlobalSection(ExtensibilityGlobals) = postSolution
28+
SolutionGuid = {B4A90275-5079-4EEF-A9D0-DE917A39A5B4}
29+
EndGlobalSection
30+
EndGlobal

src/Mvc/Mvc.ApiExplorer/src/EndpointMetadataApiDescriptionProvider.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -404,9 +404,9 @@ private static void AddSupportedResponseTypes(
404404
string? matchingDescription = null;
405405
foreach (var metadata in responseMetadataTypes)
406406
{
407-
if (metadata?.StatusCode == apiResponseType?.StatusCode &&
408-
TypesAreCompatible(apiResponseType?.Type, metadata?.Type) &&
409-
metadata?.Description is not null)
407+
if (metadata.StatusCode == apiResponseType.StatusCode &&
408+
TypesAreCompatible(apiResponseType.Type, metadata.Type) &&
409+
metadata.Description is not null)
410410
{
411411
matchingDescription = metadata.Description;
412412
}

src/submodules/googletest

Submodule googletest updated 47 files

0 commit comments

Comments
 (0)