From 5da6ab0aec1cc397aed9f54e3d3525520212447f Mon Sep 17 00:00:00 2001 From: Loren Burkholder Date: Tue, 2 Mar 2021 19:42:56 -0500 Subject: [PATCH] make lint --- src/notifications/ManagerLinux.cpp | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/src/notifications/ManagerLinux.cpp b/src/notifications/ManagerLinux.cpp index 0cf61d5c..5581252d 100644 --- a/src/notifications/ManagerLinux.cpp +++ b/src/notifications/ManagerLinux.cpp @@ -214,19 +214,18 @@ NotificationsManager::formatNotification(const mtx::responses::Notification ¬ ": "); if (hasMarkup_) { - if (hasImages_ && - mtx::accessors::msg_type(notification.event) == mtx::events::MessageType::Image) - { - QString imgPath = cacheImage(notification.event); - if (imgPath.isNull()) - return mtx::accessors::formattedBodyWithFallback(notification.event).prepend(messageLeadIn); - else - return QString( - "\""") - .prepend(messageLeadIn); + if (hasImages_ && mtx::accessors::msg_type(notification.event) == + mtx::events::MessageType::Image) { + QString imgPath = cacheImage(notification.event); + if (imgPath.isNull()) + return mtx::accessors::formattedBodyWithFallback(notification.event) + .prepend(messageLeadIn); + else + return QString("\""") + .prepend(messageLeadIn); } return mtx::accessors::formattedBodyWithFallback(notification.event)