Skip to content

Commit

Permalink
MODUSERBL-176 removed Ok case as its not needed
Browse files Browse the repository at this point in the history
  • Loading branch information
pavankumar181 committed Oct 6, 2023
1 parent b6de508 commit dc2e9d2
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@ public Future<String> signTokenLegacy(JsonObject tokenPayload, OkapiConnectionPa
return RestUtil.doRequest(httpClient, requestUrl, HttpMethod.POST, okapiConnectionParams.buildHeaders(), requestPayload)
.map(response -> {
switch (response.getCode()) {
case HttpStatus.SC_OK:
return response.getResponse().headers().get(BLUsersAPI.OKAPI_TOKEN_HEADER);
case HttpStatus.SC_CREATED:
return response.getJson().getString("token");
default:
Expand Down

0 comments on commit dc2e9d2

Please sign in to comment.