Skip to content
This repository was archived by the owner on Dec 19, 2023. It is now read-only.

Commit 13861e3

Browse files
author
Tad Sanden
committed
fix indent level
1 parent 75fed38 commit 13861e3

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

graphql-kickstart-spring-support/src/main/java/graphql/kickstart/spring/error/GraphQLErrorStartupListener.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,10 @@ public GraphQLErrorStartupListener(ErrorHandlerSupplier errorHandlerSupplier, bo
1818

1919
@Override
2020
public void onApplicationEvent(@NonNull ContextRefreshedEvent event) {
21-
ConfigurableApplicationContext context = (ConfigurableApplicationContext) event.getApplicationContext();
22-
GraphQLErrorHandler errorHandler = new GraphQLErrorHandlerFactory().create(context, exceptionHandlersEnabled);
23-
context.getBeanFactory().registerSingleton(errorHandler.getClass().getCanonicalName(), errorHandler);
24-
errorHandlerSupplier.setErrorHandler(errorHandler);
21+
ConfigurableApplicationContext context = (ConfigurableApplicationContext) event.getApplicationContext();
22+
GraphQLErrorHandler errorHandler = new GraphQLErrorHandlerFactory().create(context, exceptionHandlersEnabled);
23+
context.getBeanFactory().registerSingleton(errorHandler.getClass().getCanonicalName(), errorHandler);
24+
errorHandlerSupplier.setErrorHandler(errorHandler);
2525
}
26+
2627
}

0 commit comments

Comments
 (0)