Pārlūkot izejas kodu

codacy: make newRemotePath a local variable

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
Andy Scherzinger 6 gadi atpakaļ
vecāks
revīzija
dac5897894

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