Skip to content

Commit

Permalink
Declare string where needed
Browse files Browse the repository at this point in the history
  • Loading branch information
mario committed Mar 3, 2017
1 parent 71f3f38 commit d10d926
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/com/owncloud/android/operations/UploadFileOperation.java
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit d10d926

Please sign in to comment.