|
@@ -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);
|
|
|
}
|
|
|
|