Skip to content

Commit

Permalink
[Backport 2.x] [Chore] Remove unnecessary return statements (opensear…
Browse files Browse the repository at this point in the history
…ch-project#4572)

Signed-off-by: 10000-ki <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Craig Perkins <[email protected]>
  • Loading branch information
3 people authored Jul 17, 2024
1 parent 3dd5d9f commit e8861cf
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 e8861cf

Please sign in to comment.