From efa43c4c65f1fd10232be1c77b9d34fcf7f4b4bb Mon Sep 17 00:00:00 2001 From: MaxXor Date: Tue, 31 Mar 2015 19:09:44 +0200 Subject: [PATCH] Unnecessary try-catch block --- Client/Core/Client.cs | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/Client/Core/Client.cs b/Client/Core/Client.cs index 3d63a129..c87ffdae 100644 --- a/Client/Core/Client.cs +++ b/Client/Core/Client.cs @@ -267,13 +267,8 @@ private void Send(byte[] data) if (!Connected) return; - try - { - if (compressionEnabled) - data = new SafeQuickLZ().Compress(data, 0, data.Length, 3); - } - catch - { } + if (compressionEnabled) + data = new SafeQuickLZ().Compress(data, 0, data.Length, 3); if (encryptionEnabled) data = AES.Encrypt(data, Encoding.UTF8.GetBytes(Settings.PASSWORD));