From 5a4c735b859ac53137e8e73202a4169792188488 Mon Sep 17 00:00:00 2001 From: Christian Kratky Date: Tue, 11 Jun 2019 20:50:11 +0200 Subject: [PATCH] Refactor code. --- Tests/MQTTnet.Core.Tests/AsyncAutoResentEvent_Tests.cs | 2 +- Tests/MQTTnet.Core.Tests/MqttClient_Tests.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Tests/MQTTnet.Core.Tests/AsyncAutoResentEvent_Tests.cs b/Tests/MQTTnet.Core.Tests/AsyncAutoResentEvent_Tests.cs index dcc3821..d72712d 100644 --- a/Tests/MQTTnet.Core.Tests/AsyncAutoResentEvent_Tests.cs +++ b/Tests/MQTTnet.Core.Tests/AsyncAutoResentEvent_Tests.cs @@ -123,7 +123,7 @@ namespace MQTTnet.Tests waitTask.GetAwaiter().GetResult(); Assert.IsTrue(false, "Task was expected to transition to a canceled state."); } - catch (OperationCanceledException ex) + catch (OperationCanceledException) { } diff --git a/Tests/MQTTnet.Core.Tests/MqttClient_Tests.cs b/Tests/MQTTnet.Core.Tests/MqttClient_Tests.cs index 0fdd238..155b55e 100644 --- a/Tests/MQTTnet.Core.Tests/MqttClient_Tests.cs +++ b/Tests/MQTTnet.Core.Tests/MqttClient_Tests.cs @@ -68,7 +68,7 @@ namespace MQTTnet.Tests var replyReceived = false; - client1.UseApplicationMessageReceivedHandler(async c => + client1.UseApplicationMessageReceivedHandler(c => { if (c.ApplicationMessage.Topic == "reply") {