From 91f6a680cf47ce4aebb0458eefa0e6368287f12b Mon Sep 17 00:00:00 2001 From: Kevin Thompson Date: Sun, 16 Jun 2019 17:24:43 -0400 Subject: [PATCH] Improved code style. --- TestProtocol/CustomConnection.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/TestProtocol/CustomConnection.cs b/TestProtocol/CustomConnection.cs index 9beda66..ae19ff7 100644 --- a/TestProtocol/CustomConnection.cs +++ b/TestProtocol/CustomConnection.cs @@ -93,10 +93,7 @@ namespace TestProtocol try { - if( this.Disconnected != null ) - { - this.Disconnected(); - } + this.Disconnected?.Invoke(); } catch { }