fix: directly return newFile

This commit is contained in:
Manuel Jenny 2021-03-26 13:11:10 +01:00
parent aaf7f4bfb5
commit d3609ac691
No known key found for this signature in database
GPG Key ID: 1C80FE62B2BEAA18

View File

@ -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);