Skip to content

Commit

Permalink
Fix formatting (#1039)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shane32 committed Jun 23, 2023
1 parent 007fc5d commit ef304c1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -196,10 +196,9 @@ await Connection.SendMessageAsync(new OperationMessage
/// <inheritdoc/>
protected override async Task<ExecutionResult> ExecuteRequestAsync(OperationMessage message)
{
var request = Serializer.ReadNode<GraphQLRequest>(message.Payload);
#pragma warning disable CA2208 // Instantiate argument exceptions correctly
if (request == null)
throw new ArgumentNullException(nameof(message) + "." + nameof(OperationMessage.Payload));
var request = Serializer.ReadNode<GraphQLRequest>(message.Payload)
?? throw new ArgumentNullException(nameof(message) + "." + nameof(OperationMessage.Payload));
#pragma warning restore CA2208 // Instantiate argument exceptions correctly
var scope = ServiceScopeFactory.CreateScope();
try
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,10 +174,9 @@ await Connection.SendMessageAsync(new OperationMessage
/// <inheritdoc/>
protected override async Task<ExecutionResult> ExecuteRequestAsync(OperationMessage message)
{
var request = Serializer.ReadNode<GraphQLRequest>(message.Payload);
#pragma warning disable CA2208 // Instantiate argument exceptions correctly
if (request == null)
throw new ArgumentNullException(nameof(message) + "." + nameof(OperationMessage.Payload));
var request = Serializer.ReadNode<GraphQLRequest>(message.Payload)
?? throw new ArgumentNullException(nameof(message) + "." + nameof(OperationMessage.Payload));
#pragma warning restore CA2208 // Instantiate argument exceptions correctly
var scope = ServiceScopeFactory.CreateScope();
try
Expand Down

0 comments on commit ef304c1

Please sign in to comment.