Skip to content

Commit

Permalink
Merge pull request #671 from nextcloud/backport/665/stable-2.7
Browse files Browse the repository at this point in the history
[stable-2.7] UpdateShareRemoteOperation returns correct type
  • Loading branch information
tobiasKaminsky authored Jul 14, 2021
2 parents 4093907 + 8301b5e commit d858441
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,8 @@ public void setNote(String note) {
}

@Override
protected RemoteOperationResult run(OwnCloudClient client) {
RemoteOperationResult result = null;
protected RemoteOperationResult<List<OCShare>> run(OwnCloudClient client) {
RemoteOperationResult<List<OCShare>> result = null;
int status;

/// prepare array of parameters to update
Expand Down Expand Up @@ -232,15 +232,15 @@ protected RemoteOperationResult run(OwnCloudClient client) {
result = parser.parse(response);

} else {
result = new RemoteOperationResult(false, put);
result = new RemoteOperationResult<>(false, put);
}
if (!result.isSuccess()) {
break;
}
}

} catch (Exception e) {
result = new RemoteOperationResult(e);
result = new RemoteOperationResult<>(e);
Log_OC.e(TAG, "Exception while updating remote share ", e);
if (put != null) {
put.releaseConnection();
Expand Down

0 comments on commit d858441

Please sign in to comment.