Skip to content

Commit d8cf45d

Browse files
authored
Fixed usage of ArgumentException.ThrowIfNullOrEmpty (#8683)
1 parent cfc53fd commit d8cf45d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/HotChocolate/OpenApi/src/HotChocolate.OpenApi/Extensions/RequestExecutorBuilderExtensions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ public static IRequestExecutorBuilder AddOpenApi(
1818
MutationConventionOptions mutationConventionOptions = default)
1919
{
2020
ArgumentNullException.ThrowIfNull(builder);
21-
ArgumentException.ThrowIfNullOrEmpty(nameof(httpClientName));
22-
ArgumentException.ThrowIfNullOrEmpty(nameof(openApiDocumentText));
21+
ArgumentException.ThrowIfNullOrEmpty(httpClientName);
22+
ArgumentException.ThrowIfNullOrEmpty(openApiDocumentText);
2323

2424
// Create OpenAPI document from the provided string.
2525
var openApiStringReader = new OpenApiStringReader();

src/HotChocolate/OpenApi/src/HotChocolate.OpenApi/Helpers/GraphQLNamingHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public static string CreateInputTypeName(
2222

2323
public static string CreateName(string name)
2424
{
25-
ArgumentException.ThrowIfNullOrEmpty(nameof(name));
25+
ArgumentException.ThrowIfNullOrEmpty(name);
2626

2727
var stringBuilder = new StringBuilder();
2828

0 commit comments

Comments
 (0)