Skip to content

Commit

Permalink
fix: renaming method
Browse files Browse the repository at this point in the history
  • Loading branch information
tamassoltesz committed Aug 5, 2024
1 parent 51d0236 commit 871689a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/main/java/io/supertokens/webserver/InputParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
import com.google.gson.JsonObject;
import com.google.gson.JsonParser;

import io.supertokens.webserver.api.oauth.OAuthClientsAPI;
import jakarta.servlet.ServletException;
import jakarta.servlet.http.HttpServletRequest;

Expand Down Expand Up @@ -239,7 +238,7 @@ public static Integer parseIntOrThrowError(JsonObject element, String fieldName,

}

public static void collectAllMissingRequiredFieldsOrThrowError(JsonObject input, List<String> requiredFields)
public static void throwErrorOnMissingRequiredField(JsonObject input, List<String> requiredFields)
throws ServletException {
List<String> missingFields = new ArrayList<>();
for(String requiredField : requiredFields){
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public String getPath() {
protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws IOException, ServletException {

JsonObject input = InputParser.parseJsonObjectOrThrowError(req);
InputParser.collectAllMissingRequiredFieldsOrThrowError(input, REQUIRED_FIELDS_FOR_POST);
InputParser.throwErrorOnMissingRequiredField(input, REQUIRED_FIELDS_FOR_POST);

try {
AppIdentifier appIdentifier = getAppIdentifier(req);
Expand Down

0 comments on commit 871689a

Please sign in to comment.