From 4f834e73b2dec4fa3c40c5d0b937d06a43573fa2 Mon Sep 17 00:00:00 2001 From: James Newton-King Date: Thu, 5 Dec 2019 09:32:37 +1300 Subject: [PATCH] Clean up --- src/csharp/Grpc.Core.Api/AsyncCallState.cs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/csharp/Grpc.Core.Api/AsyncCallState.cs b/src/csharp/Grpc.Core.Api/AsyncCallState.cs index d91e4e3c398..02e2e2cc615 100644 --- a/src/csharp/Grpc.Core.Api/AsyncCallState.cs +++ b/src/csharp/Grpc.Core.Api/AsyncCallState.cs @@ -85,8 +85,14 @@ namespace Grpc.Core internal void Dispose() { var withState = disposeAction as Action; - if (withState != null) withState(callbackState); - else ((Action)disposeAction)(); + if (withState != null) + { + withState(callbackState); + } + else + { + ((Action)disposeAction)(); + } } } }