Prechádzať zdrojové kódy

Merge nested ifs

Signed-off-by: Mario Danic <mario@lovelyhq.com>
Mario Danic 7 rokov pred
rodič
commit
50bb580a4d

+ 2 - 4
src/main/java/com/owncloud/android/utils/FilesSyncHelper.java

@@ -247,10 +247,8 @@ public class FilesSyncHelper {
                 .build()
                 .schedule();
 
-        if (context != null) {
-            if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
-                scheduleJobOnN();
-            }
+        if (context != null && Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
+            scheduleJobOnN();
         }
     }