Reduce spotbugs

Signed-off-by: alperozturk <alper_ozturk@proton.me>
This commit is contained in:
alperozturk 2024-04-04 15:51:07 +02:00
parent b2b5cdb5dd
commit 0480b82858
No known key found for this signature in database
GPG Key ID: 4E577DC593B59BDF
1 changed files with 2 additions and 2 deletions

View File

@ -757,10 +757,10 @@ public class UploadFileOperation extends SyncOperation {
logResult(result, mFile.getStoragePath(), mFile.getRemotePath());
// Unlock must be done otherwise folder stays locked and user can't upload any file
RemoteOperationResult<Void> unlockFolderResult = null;
RemoteOperationResult<Void> unlockFolderResult;
if (object instanceof DecryptedFolderMetadataFileV1) {
unlockFolderResult = EncryptionUtils.unlockFolderV1(parentFile, client, token);
} else if (object instanceof DecryptedFolderMetadataFile) {
} else {
unlockFolderResult = EncryptionUtils.unlockFolder(parentFile, client, token);
}