Skip to content

Commit

Permalink
fix lint warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
srinivasankavitha committed Sep 12, 2024
1 parent 393bef2 commit 5586e4d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class DgsWebMvcGraphQLInterceptor(
}
graphQLContextFuture.complete(request.toExecutionInput().graphQLContext)

return if (dgsSpringConfigurationProperties.webmvc.asyncdispatch.enabled) {
return if (dgsSpringConfigurationProperties.webmvc.asyncdispatch.enabled) {
chain.next(request).doFinally {
if (dataLoaderRegistry is AutoCloseable) {
dataLoaderRegistry.close()
Expand All @@ -76,7 +76,7 @@ class DgsWebMvcGraphQLInterceptor(
} else {
@Suppress("BlockingMethodInNonBlockingContext")
val response = chain.next(request).block()!!
if(dataLoaderRegistry is AutoCloseable) {
if (dataLoaderRegistry is AutoCloseable) {
dataLoaderRegistry.close()
}
return Mono.just(response)
Expand Down

0 comments on commit 5586e4d

Please sign in to comment.