From d10d926484fb6aac1af206614577c89c5663039c Mon Sep 17 00:00:00 2001 From: Mario Danic Date: Fri, 3 Mar 2017 10:52:24 +0100 Subject: [PATCH] Declare string where needed --- src/com/owncloud/android/operations/UploadFileOperation.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/com/owncloud/android/operations/UploadFileOperation.java b/src/com/owncloud/android/operations/UploadFileOperation.java index d61e4c5dde9a..87214bcb3d87 100644 --- a/src/com/owncloud/android/operations/UploadFileOperation.java +++ b/src/com/owncloud/android/operations/UploadFileOperation.java @@ -293,7 +293,6 @@ protected RemoteOperationResult run(OwnCloudClient client) { mCancellationRequested.set(false); mUploadStarted.set(true); RemoteOperationResult result = null; - String expectedPath = null; File temporalFile = null, originalFile = new File(mOriginalStoragePath), expectedFile = null; try { @@ -347,7 +346,7 @@ protected RemoteOperationResult run(OwnCloudClient client) { throw new OperationCancelledException(); } - expectedPath = FileStorageUtils.getDefaultSavePathFor(mAccount.name, mFile); + String expectedPath = FileStorageUtils.getDefaultSavePathFor(mAccount.name, mFile); expectedFile = new File(expectedPath); /// copy the file locally before uploading