no need to return result based on code

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
This commit is contained in:
tobiasKaminsky 2018-07-13 15:21:26 +02:00 committed by AndyScherzinger
parent 1d05ba6526
commit 455d196b68
No known key found for this signature in database
GPG key ID: 6CADC7E3523C308B

View file

@ -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());