Fix style
authorDominik Schmidt <dev@dominik-schmidt.de>
Mon, 14 Dec 2020 13:47:45 +0000 (14:47 +0100)
committerKevin Ottens <kevin.ottens@nextcloud.com>
Wed, 30 Dec 2020 15:17:47 +0000 (16:17 +0100)
test/testutility.cpp

index 38acb0ca20a794b1fab8db4ad13b0cd4f69465ba..aa21ed788519f367dd47b5f59c91c9a6c30ab55e 100644 (file)
@@ -114,22 +114,22 @@ private slots:
 
     void testVersionOfInstalledBinary()
     {
-       if( isLinux() ) {
-            if ( qgetenv("DISPLAY").isEmpty() ) {
+        if (isLinux()) {
+            if (qgetenv("DISPLAY").isEmpty()) {
                 // Current requires an X-Server
                 return;
             }
             // pass the binary name owncloud to the next call. This brakes branding,
             // but branding is not supposed to work with this.
-            QString ver = versionOfInstalledBinary(OWNCLOUD_BIN_PATH+QLatin1String("/nextcloud"));
-           qDebug() << "Version of installed Nextcloud: " << ver;
-           QVERIFY( !ver.isEmpty());
-
-           QRegExp rx( R"(Nextcloud version \d+\.\d+\.\d+.*)" );
-            QVERIFY( rx.exactMatch(ver));
-       } else {
-           QVERIFY( versionOfInstalledBinary().isEmpty());
-       }
+            QString ver = versionOfInstalledBinary(OWNCLOUD_BIN_PATH + QLatin1String("/nextcloud"));
+            qDebug() << "Version of installed Nextcloud: " << ver;
+            QVERIFY(!ver.isEmpty());
+
+            QRegExp rx(R"(Nextcloud version \d+\.\d+\.\d+.*)");
+            QVERIFY(rx.exactMatch(ver));
+        } else {
+            QVERIFY(versionOfInstalledBinary().isEmpty());
+        }
     }
 
     void testTimeAgo()