소스 검색

MainApp: Removed identical sub-expression in if statement.

This is almost certainly a mistake. Using the same value on either side of a binary operator makes no sense.
ardevd 7 년 전
부모
커밋
cd0268220e
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      src/main/java/com/owncloud/android/MainApp.java

+ 1 - 2
src/main/java/com/owncloud/android/MainApp.java

@@ -488,8 +488,7 @@ public class MainApp extends MultiDexApplication {
 
     private static void updateToAutoUpload() {
             Context context = getAppContext();
-            if (PreferenceManager.instantPictureUploadEnabled(context) ||
-                            PreferenceManager.instantPictureUploadEnabled(context)) {
+            if (PreferenceManager.instantPictureUploadEnabled(context)) {
 
                 // remove legacy shared preferences
                 SharedPreferences.Editor editor = PreferenceManager.getDefaultSharedPreferences(context).edit();