Skip to content

Commit

Permalink
[Chore] Remove unnecessary return statements (opensearch-project#4558)
Browse files Browse the repository at this point in the history
Signed-off-by: 10000-ki <[email protected]>
  • Loading branch information
10000-ki authored Jul 16, 2024
1 parent cfb5525 commit 6296a34
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,6 @@ void authorizeRequest(RestHandler original, SecurityRequestChannel request, User
log.debug(err);

request.queueForSending(new SecurityResponse(HttpStatus.SC_UNAUTHORIZED, err));
return;
}
}
}
Expand Down Expand Up @@ -309,7 +308,6 @@ public void checkAndAuthenticateRequest(SecurityRequestChannel requestChannel) t
if (!registry.authenticate(requestChannel)) {
// another roundtrip
org.apache.logging.log4j.ThreadContext.remove("user");
return;
} else {
// make it possible to filter logs by username
org.apache.logging.log4j.ThreadContext.put(
Expand Down

0 comments on commit 6296a34

Please sign in to comment.