fix code analytics

Signed-off-by: alperozturk <alper_ozturk@proton.me>
This commit is contained in:
alperozturk 2024-03-12 16:31:48 +01:00 committed by Alper Öztürk
parent 7140c50089
commit d231fee08d
1 changed files with 2 additions and 6 deletions

View File

@ -490,12 +490,8 @@ public class UploadFileOperation extends SyncOperation {
// 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) {