Skip to content

Commit

Permalink
Fixes spotless errors
Browse files Browse the repository at this point in the history
Signed-off-by: Darshit Chanpura <[email protected]>
  • Loading branch information
DarshitChanpura committed Nov 2, 2022
1 parent 22e4af0 commit ae17a88
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions server/src/main/java/org/opensearch/action/ActionModule.java
Original file line number Diff line number Diff line change
Expand Up @@ -432,8 +432,6 @@
import org.opensearch.threadpool.ThreadPool;
import org.opensearch.usage.UsageService;

import java.security.AccessController;
import java.security.PrivilegedAction;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
Expand Down Expand Up @@ -470,6 +468,7 @@ public class ActionModule extends AbstractModule {
private final RequestValidators<PutMappingRequest> mappingRequestValidators;
private final RequestValidators<IndicesAliasesRequest> indicesAliasesRequestRequestValidators;
private final ThreadPool threadPool;

public ActionModule(
Settings settings,
IndexNameExpressionResolver indexNameExpressionResolver,
Expand Down
3 changes: 1 addition & 2 deletions server/src/main/java/org/opensearch/rest/RestController.java
Original file line number Diff line number Diff line change
Expand Up @@ -405,8 +405,7 @@ private void tryAllHandlers(final RestRequest request, final RestChannel channel
boolean isAuthenticated = authenticate(request, channel, client);

// TODO: check if this behaviour is correct
if(!isAuthenticated)
return;
if (!isAuthenticated) return;

dispatchRequest(request, channel, handler);
return;
Expand Down

0 comments on commit ae17a88

Please sign in to comment.