Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ resharper_enforce_if_statement_braces_highlighting = error
resharper_enforce_lock_statement_braces_highlighting = error
resharper_enforce_using_statement_braces_highlighting = error
resharper_enforce_while_statement_braces_highlighting = error
resharper_redundant_string_format_call_highlighting = error
resharper_unused_variable_highlighting = warning
resharper_use_utf8_string_literal_highlighting = error
resharper_use_verbatim_string_highlighting = error
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public static IExecutionResult OperationNameRequired()

public static IError BatchSizeExceeded(int maxBatchSize)
=> ErrorBuilder.New()
.SetMessage(string.Format(ErrorHelper_BatchSizeExceeded, maxBatchSize))
.SetMessage(ErrorHelper_BatchSizeExceeded, maxBatchSize)
.SetCode(ErrorCodes.Server.RequestInvalid)
.Build();
}
2 changes: 1 addition & 1 deletion src/HotChocolate/Core/src/Types/Execution/ThrowHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ public static GraphQLException ResolverContext_CannotCastParent(
public static GraphQLException OneOfFieldMustBeNonNull(
SchemaCoordinate field)
=> new(ErrorBuilder.New()
.SetMessage(string.Format(ThrowHelper_OneOfFieldMustBeNonNull, field.MemberName))
.SetMessage(ThrowHelper_OneOfFieldMustBeNonNull, field.MemberName)
.SetCode(ErrorCodes.Execution.OneOfFieldMustBeNonNull)
.SetExtension(nameof(field), field.ToString())
.Build());
Expand Down
5 changes: 1 addition & 4 deletions src/HotChocolate/Core/src/Types/Utilities/ThrowHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -734,10 +734,7 @@ public static LeafCoercionException RegexType_InvalidFormat(
{
return new LeafCoercionException(
ErrorBuilder.New()
.SetMessage(
string.Format(
TypeResources.RegexType_InvalidFormat,
name))
.SetMessage(TypeResources.RegexType_InvalidFormat, name)
.SetCode(ErrorCodes.Scalars.InvalidSyntaxFormat)
.Build(),
type);
Expand Down
Loading