From bd924330adc4e7f297dfe52b5d629288cf00f503 Mon Sep 17 00:00:00 2001 From: Martchus Date: Mon, 4 Sep 2023 20:20:51 +0200 Subject: [PATCH] Remove identical branches GCC warns about this so let's just remove this leftover. --- syncthingconnector/syncthingconnection_requests.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/syncthingconnector/syncthingconnection_requests.cpp b/syncthingconnector/syncthingconnection_requests.cpp index 425fdf9..ed4faa1 100644 --- a/syncthingconnector/syncthingconnection_requests.cpp +++ b/syncthingconnector/syncthingconnection_requests.cpp @@ -2016,10 +2016,8 @@ void SyncthingConnection::readDeviceEvent(SyncthingEventId eventId, DateTime eve status = SyncthingDevStatus::Rejected; } else if (eventType == QLatin1String("DeviceResumed")) { paused = false; - } else if (eventType == QLatin1String("DeviceDiscovered")) { - return; // we know about this device already, nothing to do } else { - return; // can't handle other event types currently + return; } // assign new status