Skip to content

Commit

Permalink
Fix kotlin spotless
Browse files Browse the repository at this point in the history
Signed-off-by: alperozturk <[email protected]>
  • Loading branch information
alperozturk96 committed May 2, 2024
1 parent 25a6547 commit bb36e32
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -755,8 +755,12 @@ private void updateMetadataForE2E(Object object, E2EData e2eData, E2EClientData
e2eFiles.getParentFile(),
arbitraryDataProvider,
metadataExists);
} else {
updateMetadataForV2(object, encryptionUtilsV2, e2eData, clientData, e2eFiles.getParentFile());
} else if (object instanceof DecryptedFolderMetadataFile metadata) {
updateMetadataForV2(metadata,
encryptionUtilsV2,
e2eData,
clientData,
e2eFiles.getParentFile());
}
}

Expand Down Expand Up @@ -806,9 +810,7 @@ private void updateMetadataForV1(DecryptedFolderMetadataFileV1 metadata, E2EData
}


private void updateMetadataForV2(Object object, EncryptionUtilsV2 encryptionUtilsV2, E2EData e2eData, E2EClientData clientData, OCFile parentFile) throws UploadException {

DecryptedFolderMetadataFile metadata = (DecryptedFolderMetadataFile) object;
private void updateMetadataForV2(DecryptedFolderMetadataFile metadata, EncryptionUtilsV2 encryptionUtilsV2, E2EData e2eData, E2EClientData clientData, OCFile parentFile) throws UploadException {
encryptionUtilsV2.addFileToMetadata(
e2eData.getEncryptedFileName(),
mFile,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ package com.owncloud.android.operations.e2e

import com.owncloud.android.datamodel.OCFile
import com.owncloud.android.lib.common.utils.Log_OC
import com.owncloud.android.operations.UploadFileOperation
import java.io.File

data class E2EFiles(
Expand Down

0 comments on commit bb36e32

Please sign in to comment.