소스 검색

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