Skip to content

Commit 0debb5a

Browse files
author
Per Kops
committed
chore: remove superfluous null checks in ApiOptionsHelper
1 parent 5b1cb61 commit 0debb5a

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

src/Atc.Rest.ApiGenerator.CLI/ApiOptionsHelper.cs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -149,10 +149,7 @@ private static void ApplyGeneratorOverrides(
149149
apiOptions.Generator.Response.UseProblemDetailsAsDefaultBody = serverCommandSettings.UseProblemDetailsAsDefaultResponseBody;
150150
}
151151

152-
if (serverCommandSettings.ProjectPrefixName is not null)
153-
{
154-
apiOptions.Generator.ProjectName = serverCommandSettings.ProjectPrefixName;
155-
}
152+
apiOptions.Generator.ProjectName = serverCommandSettings.ProjectPrefixName;
156153

157154
if (serverCommandSettings.EndpointsLocation is not null &&
158155
serverCommandSettings.EndpointsLocation.IsSet)
@@ -215,10 +212,7 @@ private static void ApplyGeneratorOverrides(
215212
apiOptions.Generator.Response.UseProblemDetailsAsDefaultBody = clientApiCommandSettings.UseProblemDetailsAsDefaultResponseBody;
216213
}
217214

218-
if (clientApiCommandSettings.ProjectPrefixName is not null)
219-
{
220-
apiOptions.Generator.ProjectName = clientApiCommandSettings.ProjectPrefixName;
221-
}
215+
apiOptions.Generator.ProjectName = clientApiCommandSettings.ProjectPrefixName;
222216

223217
if (clientApiCommandSettings.RemoveNamespaceGroupSeparatorInGlobalUsings)
224218
{

0 commit comments

Comments
 (0)