diff --git a/j-lawyer-server/j-lawyer-io/src/java/org/jlawyer/io/rest/v6/SecurityEndpointV6.java b/j-lawyer-server/j-lawyer-io/src/java/org/jlawyer/io/rest/v6/SecurityEndpointV6.java index 88c85e616..d7dcf66e0 100644 --- a/j-lawyer-server/j-lawyer-io/src/java/org/jlawyer/io/rest/v6/SecurityEndpointV6.java +++ b/j-lawyer-server/j-lawyer-io/src/java/org/jlawyer/io/rest/v6/SecurityEndpointV6.java @@ -827,8 +827,7 @@ public Response createUser(RestfulUserV6 userData) { userData = RestfulUserV6.fromAppUserBean(u); - Response res = Response.ok(userData).build(); - return res; + return Response.ok(userData).build(); } catch (Exception ex) { log.error("can not create new user " + userData.getPrincipalId(), ex); return Response.serverError().build();