Skip to content

Commit

Permalink
fix code analytics
Browse files Browse the repository at this point in the history
Signed-off-by: alperozturk <[email protected]>
  • Loading branch information
alperozturk96 committed Mar 15, 2024
1 parent 7140c50 commit d231fee
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit d231fee

Please sign in to comment.