diff --git a/src/csharp/Grpc.Core.Tests/ClientServerTest.cs b/src/csharp/Grpc.Core.Tests/ClientServerTest.cs index c91efe53b4c8815c29d6b556f463099895431231..8c4b92fbada989a5d3ca976eff9a9da7ea15b8be 100644 --- a/src/csharp/Grpc.Core.Tests/ClientServerTest.cs +++ b/src/csharp/Grpc.Core.Tests/ClientServerTest.cs @@ -179,7 +179,7 @@ namespace Grpc.Core.Tests { await callResult.Result; } - catch(RpcException e) + catch (RpcException e) { Assert.AreEqual(StatusCode.Unknown, e.Status.StatusCode); } @@ -201,7 +201,7 @@ namespace Grpc.Core.Tests { await callResult.Result; } - catch(RpcException e) + catch (RpcException e) { Assert.AreEqual(StatusCode.Cancelled, e.Status.StatusCode); } diff --git a/src/csharp/Grpc.Core/Calls.cs b/src/csharp/Grpc.Core/Calls.cs index c2397290fdb79c1cadfbf0bfaf6063158eed050f..a8d2b9498e999af80d8242a9d42ba3f3b5cc9097 100644 --- a/src/csharp/Grpc.Core/Calls.cs +++ b/src/csharp/Grpc.Core/Calls.cs @@ -95,7 +95,7 @@ namespace Grpc.Core { if (token.CanBeCanceled) { - token.Register( () => asyncCall.Cancel() ); + token.Register(() => asyncCall.Cancel()); } }