Skip to content

Commit 5fee93d

Browse files
marioAndyScherzinger
authored andcommitted
Declare string where needed
1 parent a53e289 commit 5fee93d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/com/owncloud/android/operations/UploadFileOperation.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,6 @@ protected RemoteOperationResult run(OwnCloudClient client) {
293293
mCancellationRequested.set(false);
294294
mUploadStarted.set(true);
295295
RemoteOperationResult result = null;
296-
String expectedPath = null;
297296
File temporalFile = null, originalFile = new File(mOriginalStoragePath), expectedFile = null;
298297

299298
try {
@@ -347,7 +346,7 @@ protected RemoteOperationResult run(OwnCloudClient client) {
347346
throw new OperationCancelledException();
348347
}
349348

350-
expectedPath = FileStorageUtils.getDefaultSavePathFor(mAccount.name, mFile);
349+
String expectedPath = FileStorageUtils.getDefaultSavePathFor(mAccount.name, mFile);
351350
expectedFile = new File(expectedPath);
352351

353352
/// copy the file locally before uploading

0 commit comments

Comments
 (0)