Declare string where needed

This commit is contained in:
Mario Danic 2017-03-03 10:52:24 +01:00 committed by AndyScherzinger
parent a53e289a3e
commit 5fee93d975
No known key found for this signature in database
GPG key ID: 6CADC7E3523C308B

View file

@ -293,7 +293,6 @@ public class UploadFileOperation extends SyncOperation {
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 @@ public class UploadFileOperation extends SyncOperation {
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