Преглед на файлове

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