Changed CommentManagementAPIImpl

merge-requests/7/head
nishadi 7 years ago
parent 0ac0efcf2e
commit f82368990f

@ -37,7 +37,6 @@ import javax.ws.rs.PUT;
import javax.ws.rs.GET; import javax.ws.rs.GET;
import javax.ws.rs.POST; import javax.ws.rs.POST;
import javax.ws.rs.DELETE; import javax.ws.rs.DELETE;
import javax.ws.rs.NotFoundException;
import javax.ws.rs.core.Response; import javax.ws.rs.core.Response;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
@ -208,7 +207,6 @@ public class CommentManagementAPIImpl implements CommentManagementAPI {
int newStars; int newStars;
try { try {
newStars = commentsManager.updateStars(stars, uuid); newStars = commentsManager.updateStars(stars, uuid);
if (stars != 0) { if (stars != 0) {
return Response.status(Response.Status.CREATED).entity(newStars).build(); return Response.status(Response.Status.CREATED).entity(newStars).build();
} else { } else {

Loading…
Cancel
Save