From 6e943bf768ce62a92d1f9b6ec2d341693a5edee4 Mon Sep 17 00:00:00 2001 From: Michael Zanetti Date: Thu, 2 Dec 2021 19:49:58 +0100 Subject: [PATCH] Nuki: Fix bad if clause guards --- nuki/bluez/bluetoothmanager.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/nuki/bluez/bluetoothmanager.cpp b/nuki/bluez/bluetoothmanager.cpp index 01d21df3..4e62e298 100644 --- a/nuki/bluez/bluetoothmanager.cpp +++ b/nuki/bluez/bluetoothmanager.cpp @@ -180,10 +180,10 @@ void BluetoothManager::processInterfaceList(const QDBusObjectPath &objectPath, c if (properties.contains("Service")) { QDBusObjectPath serviceObjectPath = qvariant_cast(properties.value("Service")); BluetoothGattService *service = findService(serviceObjectPath); - if (service) + if (service) { qCDebug(dcBluez()) << "Add characteristic" << serviceObjectPath.path() << properties << service; service->addCharacteristicInternally(objectPath, properties); - + } } } } @@ -196,10 +196,10 @@ void BluetoothManager::processInterfaceList(const QDBusObjectPath &objectPath, c if (properties.contains("Characteristic")) { QDBusObjectPath characterisitcObjectPath = qvariant_cast(properties.value("Characteristic")); BluetoothGattCharacteristic *characteristic = findCharacteristic(characterisitcObjectPath); - if (characteristic) + if (characteristic) { qCDebug(dcBluez()) << "Add descriptor" << characterisitcObjectPath.path() << properties << characteristic; characteristic->addDescriptorInternally(objectPath, properties); - + } } } }