Skip to content

Commit 01f6d42

Browse files
author
Miguel Gonzalez Sanchez
committed
more formatting fixes
1 parent c69b193 commit 01f6d42

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

grpc-spring-boot-starter/src/main/java/org/lognet/springboot/grpc/autoconfigure/OnMissingErrorHandlerCondition.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,19 +33,18 @@ public ConditionOutcome getMatchOutcome(ConditionContext context, AnnotatedTypeM
3333
try {
3434
for (Method method : MethodIntrospector.selectMethods(Class.forName(beanClassName), f)) {
3535
final Optional<Class<? extends Throwable>> handledException = HandlerMethod.getHandledException(method, false);
36-
if(handledException.isPresent() && handledException.get().isAssignableFrom(exc)) {
36+
if(handledException.isPresent() && handledException.get().isAssignableFrom(exc)){
3737
return ConditionOutcome.noMatch(String.format("Found %s handler at %s.%s",
3838
handledException.get().getName(),
3939
beanClassName,
4040
method.getName()
4141
));
42-
));
4342
}
4443
}
4544
} catch (ClassNotFoundException e) {
4645
throw new IllegalStateException(e);
4746
}
48-
}
47+
};
4948

5049
return ConditionOutcome.match();
5150
}

0 commit comments

Comments
 (0)