From a8f1a881ff2dd078f290934103daa26284e85336 Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Wed, 12 Jun 2024 18:52:33 +0200 Subject: [PATCH] GioLister: Remove useless else --- src/device/giolister.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/device/giolister.cpp b/src/device/giolister.cpp index 9d9d29f92..92d7c7b13 100644 --- a/src/device/giolister.cpp +++ b/src/device/giolister.cpp @@ -54,9 +54,8 @@ QString GioLister::DeviceInfo::unique_id() const { if (mount_ptr) { return QStringLiteral("Gio/%1/%2/%3").arg(mount_uuid, filesystem_type).arg(filesystem_size); } - else { - return QStringLiteral("Gio/unmounted/%1").arg(reinterpret_cast(volume_ptr.get())); - } + + return QStringLiteral("Gio/unmounted/%1").arg(reinterpret_cast(volume_ptr.get())); }