From 0480b8285815f4ea52639266662c43ab54359267 Mon Sep 17 00:00:00 2001 From: alperozturk Date: Thu, 4 Apr 2024 15:51:07 +0200 Subject: [PATCH] Reduce spotbugs Signed-off-by: alperozturk --- .../com/owncloud/android/operations/UploadFileOperation.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/owncloud/android/operations/UploadFileOperation.java b/app/src/main/java/com/owncloud/android/operations/UploadFileOperation.java index 9aa8aef309cb..0329979e2f76 100644 --- a/app/src/main/java/com/owncloud/android/operations/UploadFileOperation.java +++ b/app/src/main/java/com/owncloud/android/operations/UploadFileOperation.java @@ -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 unlockFolderResult = null; + RemoteOperationResult unlockFolderResult; if (object instanceof DecryptedFolderMetadataFileV1) { unlockFolderResult = EncryptionUtils.unlockFolderV1(parentFile, client, token); - } else if (object instanceof DecryptedFolderMetadataFile) { + } else { unlockFolderResult = EncryptionUtils.unlockFolder(parentFile, client, token); }