Skip to content

Commit

Permalink
Reduce spotbugs
Browse files Browse the repository at this point in the history
Signed-off-by: alperozturk <[email protected]>
  • Loading branch information
alperozturk96 committed Apr 4, 2024
1 parent b2b5cdb commit 0480b82
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -757,10 +757,10 @@ private RemoteOperationResult encryptedUpload(OwnCloudClient client, OCFile pare
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);
}

Expand Down

0 comments on commit 0480b82

Please sign in to comment.