Skip to content

Commit

Permalink
remove redundant condition
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewazores committed Sep 13, 2023
1 parent baa3e37 commit 5268e58
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ private boolean ensureMethodAccepted(HttpExchange exchange) throws IOException {
if (!restricted) {
return true;
}
boolean passed = restricted && MutatingRemoteContext.apiWritesEnabled(config);
boolean passed = MutatingRemoteContext.apiWritesEnabled(config);
if (!passed) {
exchange.sendResponseHeaders(HttpStatus.SC_FORBIDDEN, BODY_LENGTH_NONE);
}
Expand Down

0 comments on commit 5268e58

Please sign in to comment.