Fixed formatting

master
Lasse Luttermann 2024-05-14 08:26:44 +02:00
parent ba8a88acfb
commit 3c075bcc53
1 changed files with 1 additions and 2 deletions

View File

@ -370,8 +370,7 @@ void UPower::setDisplayDevice() {
auto thisPtr{static_cast<UPower *>(user_data)};
upDevice.upDevice = static_cast<UpDevice *>(data);
thisPtr->getUpDeviceInfo(upDevice);
if (upDevice.nativePath == nullptr)
return;
if (upDevice.nativePath == nullptr) return;
if (0 == std::strcmp(upDevice.nativePath, thisPtr->nativePath_.c_str())) {
// Unref current upDevice
if (thisPtr->upDevice_.upDevice != NULL) g_object_unref(thisPtr->upDevice_.upDevice);