浏览代码

Reduce spotbugs

Signed-off-by: alperozturk <alper_ozturk@proton.me>
alperozturk 1 年之前
父节点
当前提交
0480b82858
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      app/src/main/java/com/owncloud/android/operations/UploadFileOperation.java

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