From 455d196b68d3ae01542bb1963e5fbad89cfbec2a Mon Sep 17 00:00:00 2001 From: tobiasKaminsky Date: Fri, 13 Jul 2018 15:21:26 +0200 Subject: [PATCH] no need to return result based on code Signed-off-by: tobiasKaminsky --- .../android/operations/RefreshFolderOperation.java | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/main/java/com/owncloud/android/operations/RefreshFolderOperation.java b/src/main/java/com/owncloud/android/operations/RefreshFolderOperation.java index 94ca840a26..e4b7bbacfd 100644 --- a/src/main/java/com/owncloud/android/operations/RefreshFolderOperation.java +++ b/src/main/java/com/owncloud/android/operations/RefreshFolderOperation.java @@ -289,13 +289,6 @@ public class RefreshFolderOperation extends RemoteOperation { if (result.getCode() == ResultCode.FILE_NOT_FOUND) { removeLocalFolder(); } - if (result.getCode() == ResultCode.MAINTENANCE_MODE) { - return result; - } - if (result.getCode() == ResultCode.HOST_NOT_AVAILABLE || - result.getCode() == ResultCode.NO_NETWORK_CONNECTION) { - return result; - } if (result.isException()) { Log_OC.e(TAG, "Checked " + mAccount.name + remotePath + " : " + result.getLogMessage(), result.getException());