瀏覽代碼

codacy: make newRemotePath a local variable

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
Andy Scherzinger 6 年之前
父節點
當前提交
dac5897894
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/main/java/com/owncloud/android/operations/RenameFileOperation.java

+ 1 - 1
src/main/java/com/owncloud/android/operations/RenameFileOperation.java

@@ -48,7 +48,6 @@ public class RenameFileOperation extends SyncOperation {
     private OCFile file;
     private String remotePath;
     private String newName;
-    private String newRemotePath;
 
     /**
      * Constructor
@@ -70,6 +69,7 @@ public class RenameFileOperation extends SyncOperation {
     @Override
     protected RemoteOperationResult run(OwnCloudClient client) {
         RemoteOperationResult result = null;
+        String newRemotePath = null;
 
         file = getStorageManager().getFileByPath(remotePath);