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