From d231fee08db1ebb16529ef5b0e8a7702520a2add Mon Sep 17 00:00:00 2001 From: alperozturk Date: Tue, 12 Mar 2024 16:31:48 +0100 Subject: [PATCH] fix code analytics Signed-off-by: alperozturk --- .../owncloud/android/operations/UploadFileOperation.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/app/src/main/java/com/owncloud/android/operations/UploadFileOperation.java b/app/src/main/java/com/owncloud/android/operations/UploadFileOperation.java index b6980ea7b32f..a4d04c0cd2db 100644 --- a/app/src/main/java/com/owncloud/android/operations/UploadFileOperation.java +++ b/app/src/main/java/com/owncloud/android/operations/UploadFileOperation.java @@ -490,12 +490,8 @@ private RemoteOperationResult encryptedUpload(OwnCloudClient client, OCFile pare // mContext); Object object = EncryptionUtils.downloadFolderMetadata(parentFile, client, mContext, user); - if (object != null) { - if (object instanceof DecryptedFolderMetadataFileV1) { - if (((DecryptedFolderMetadataFileV1) object).getMetadata() != null) { - metadataExists = true; - } - } + if (object instanceof DecryptedFolderMetadataFileV1 && ((DecryptedFolderMetadataFileV1) object).getMetadata() != null) { + metadataExists = true; } if (CapabilityUtils.getCapability(mContext).getEndToEndEncryptionApiVersion().compareTo(E2EVersion.V2_0) >= 0) {