Эх сурвалжийг харах

Reduce spotbugs

Signed-off-by: alperozturk <alper_ozturk@proton.me>
alperozturk 1 жил өмнө
parent
commit
0480b82858

+ 2 - 2
app/src/main/java/com/owncloud/android/operations/UploadFileOperation.java

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