Skip to content

Commit

Permalink
remove duplicate code
Browse files Browse the repository at this point in the history
  • Loading branch information
iamazy committed Jun 3, 2020
1 parent 3e2b074 commit dda9b4a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,10 @@ public class OperLogAspect {

@Around("@annotation(com.jd.laf.web.vertx.annotation.Path)")
public Object around(ProceedingJoinPoint joinPoint) throws Throwable {
Class<?> clazz = joinPoint.getSignature().getDeclaringType();
Object result = joinPoint.proceed();
if (result instanceof Response) {
Response response = (Response) result;
Class<?> clazz = joinPoint.getSignature().getDeclaringType();
if (response.getCode() == 200 && !exceptCommandClasses.contains(clazz)) {
MethodSignature methodSignature = (MethodSignature) joinPoint.getSignature();
Path path = methodSignature.getMethod().getAnnotation(Path.class);
Expand Down

0 comments on commit dda9b4a

Please sign in to comment.