fix: directly return newFile
This commit is contained in:
parent
aaf7f4bfb5
commit
d3609ac691
@ -222,10 +222,9 @@ class PCloudImpl {
|
|||||||
};
|
};
|
||||||
|
|
||||||
try {
|
try {
|
||||||
RemoteFile newFile = client() //
|
return client() //
|
||||||
.createFile(file.getParent().getPath(), file.getName(), pCloudDataSource, new Date(), listener, uploadOptions) //
|
.createFile(file.getParent().getPath(), file.getName(), pCloudDataSource, new Date(), listener, uploadOptions) //
|
||||||
.execute();
|
.execute();
|
||||||
return newFile;
|
|
||||||
} catch (ApiError ex) {
|
} catch (ApiError ex) {
|
||||||
handleApiError(ex);
|
handleApiError(ex);
|
||||||
throw new FatalBackendException(ex);
|
throw new FatalBackendException(ex);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user