Skip to content

Commit

Permalink
IQSS#3702 - Code commentary to be removed
Browse files Browse the repository at this point in the history
  • Loading branch information
luddaniel committed Dec 13, 2023
1 parent 1112ae7 commit 7d5e940
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/main/java/edu/harvard/iq/dataverse/api/Datasets.java
Original file line number Diff line number Diff line change
Expand Up @@ -2189,7 +2189,6 @@ public Response returnToAuthor(@Context ContainerRequestContext crc, @PathParam(
Dataset dataset = findDatasetOrDie(idSupplied);
String reasonForReturn = null;
reasonForReturn = json.getString("reasonForReturn");
// TODO: Once we add a box for the curator to type into, pass the reason for return to the ReturnDatasetToAuthorCommand and delete this check and call to setReturnReason on the API side.
if (reasonForReturn == null || reasonForReturn.isEmpty()) {
return error(Response.Status.BAD_REQUEST, BundleUtil.getStringFromBundle("dataset.reject.datasetNotInReview"));
}
Expand Down

0 comments on commit 7d5e940

Please sign in to comment.