Skip to content

Commit

Permalink
removed unnecessary calls to session.save() since operation on the Wo…
Browse files Browse the repository at this point in the history
…rkspace interface are dispatched immediately
  • Loading branch information
fasseg committed May 7, 2013
1 parent 0076fa4 commit c16c3f3
Showing 1 changed file with 0 additions and 2 deletions.
Expand Up @@ -36,7 +36,6 @@ public Response createWorkspace() throws RepositoryException {
final Session sess = getAuthenticatedSession();
String name = RandomStringUtils.randomAlphanumeric(16);
sess.getWorkspace().createWorkspace(name);
sess.save();
return Response.status(201).entity(name).build();
}

Expand All @@ -61,7 +60,6 @@ public Response deleteWorkspace(@PathParam("name") final String name) throws Rep
throw new RepositoryException("Unable to delete the default workspace");
}
sess.getWorkspace().deleteWorkspace(name);
sess.save();
return Response.ok().build();
}

Expand Down

0 comments on commit c16c3f3

Please sign in to comment.