Skip to content

Commit

Permalink
Merge pull request IQSS#7907 from pkiraly/7906-delete-an-extra-space-…
Browse files Browse the repository at this point in the history
…from-delete-user-api-message

IQSS#7906 delete extra space from the end of an API success message.
  • Loading branch information
kcondon authored May 28, 2021
2 parents eea5589 + f1e726e commit 81f940d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 2 additions & 3 deletions src/main/java/edu/harvard/iq/dataverse/api/Admin.java
Original file line number Diff line number Diff line change
Expand Up @@ -379,9 +379,8 @@ private Response deleteAuthenticatedUser(AuthenticatedUser au) {
authSvc.removeAuthentictedUserItems(au);

authSvc.deleteAuthenticatedUser(au.getId());
return ok("AuthenticatedUser " + au.getIdentifier() + " deleted. ");

}
return ok("AuthenticatedUser " + au.getIdentifier() + " deleted.");
}

@POST
@Path("authenticatedUsers/{identifier}/deactivate")
Expand Down
2 changes: 0 additions & 2 deletions src/test/java/edu/harvard/iq/dataverse/api/AdminIT.java
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,7 @@ public void testListAuthenticatedUsers() throws Exception {

Response deleteSuperuser = UtilIT.deleteUser(superuserUsername);
assertEquals(200, deleteSuperuser.getStatusCode());

}


@Test
public void testFilterAuthenticatedUsersForbidden() throws Exception {
Expand Down

0 comments on commit 81f940d

Please sign in to comment.