Remove redundant openUrl variable
authorClaudio Cambra <claudio.cambra@nextcloud.com>
Wed, 7 Dec 2022 12:48:51 +0000 (13:48 +0100)
committerClaudio Cambra <claudio.cambra@nextcloud.com>
Wed, 7 Dec 2022 12:48:51 +0000 (13:48 +0100)
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
src/gui/editlocallyjob.cpp

index de01a2cc2a9b984bf93d7b416974f2bc2adc0001..1027243e38214e6f13e180ea8018de66373680fd 100644 (file)
@@ -546,8 +546,7 @@ void EditLocallyJob::openFile()
     // from a separate thread, or, there will be a freeze. To avoid searching for a specific folder and checking
     // if the VFS is enabled - we just always call it from a separate thread.
     QtConcurrent::run([localFilePathUrl, this]() {
-        const auto fileOpened = QDesktopServices::openUrl(localFilePathUrl);
-        if (!fileOpened) {
+        if (QDesktopServices::openUrl(localFilePathUrl)) {
             showError(tr("Could not open %1").arg(_fileName), tr("Please try again."));
         }