Reduce spotbugs
Signed-off-by: alperozturk <alper_ozturk@proton.me>
This commit is contained in:
parent
b2b5cdb5dd
commit
0480b82858
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue