Skip to content

Commit

Permalink
fix: remove unused constant
Browse files Browse the repository at this point in the history
  • Loading branch information
tamassoltesz committed Aug 5, 2024
1 parent 871689a commit b9edcbf
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ public class OAuthClientsAPI extends WebserverAPI {
private static final List<String> REQUIRED_INPUT_FIELDS_FOR_POST = Arrays.asList(new String[]{"clientName", "scope"});
private static final List<String> REQUIRED_INPUT_FIELDS_FOR_PATCH = Arrays.asList(new String[]{"clientId"});
public static final String OAUTH2_CLIENT_NOT_FOUND_ERROR = "OAUTH2_CLIENT_NOT_FOUND_ERROR";
public static final String INVALID_INPUT_ERROR = "INVALID_INPUT_ERROR";
public static final String OAUTH2_CLIENT_UPDATE_ERROR = "OAUTH2_CLIENT_UPDATE_ERROR";

@Override
Expand Down Expand Up @@ -156,7 +155,7 @@ protected void doPatch(HttpServletRequest req, HttpServletResponse resp) throws
} catch (OAuthAPIInvalidInputException exception) {
throw new ServletException(new BadRequestException(exception.error + " - " + exception.errorDescription));
} catch (OAuthClientUpdateException updateException) {
//for errors with the update from hydra, which are not invalid input errors
//for errors with the update from hydra, which are not reported back as invalid input errors
JsonObject errorResponse = createJsonFromException(updateException, OAUTH2_CLIENT_UPDATE_ERROR);
sendJsonResponse(200, errorResponse, resp);

Expand Down

0 comments on commit b9edcbf

Please sign in to comment.