Skip to content
This repository was archived by the owner on May 1, 2025. It is now read-only.

Commit adc03f5

Browse files
Update APIHandler.java
1 parent 0514202 commit adc03f5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/com/andcool/handlers/API/APIHandler.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@ public void handle(HttpExchange exchange) throws IOException {
2525
if (matcher.matches()) {
2626
String code = matcher.group(1);
2727
JSONObject result = OAuthServer.expiringMap.get(code);
28-
if (result == null){
28+
if (result == null) {
2929
JSONObject jsonResponse = new JSONObject();
3030
jsonResponse.put("status", "error");
3131
jsonResponse.put("message", "Code not found");
3232
jsonResponse.put("status_code", 404);
3333
response = jsonResponse.toString();
3434
status_code = 404;
35-
}else{
35+
} else {
3636
response = result.toString();
3737
OAuthServer.expiringMap.remove(code);
3838
}

0 commit comments

Comments
 (0)