Pārlūkot izejas kodu

Remove redundant code in SentinelResourceAspect (#2016)

master
ss-superman GitHub pirms 3 gadiem
vecāks
revīzija
dfce6ebba4
Šim parakstam datu bāzē netika atrasta zināma atslēga GPG atslēgas ID: 4AEE18F83AFDEB23
1 mainītis faili ar 1 papildinājumiem un 2 dzēšanām
  1. +1
    -2
      sentinel-extension/sentinel-annotation-aspectj/src/main/java/com/alibaba/csp/sentinel/annotation/aspectj/SentinelResourceAspect.java

+ 1
- 2
sentinel-extension/sentinel-annotation-aspectj/src/main/java/com/alibaba/csp/sentinel/annotation/aspectj/SentinelResourceAspect.java Parādīt failu

@@ -54,8 +54,7 @@ public class SentinelResourceAspect extends AbstractSentinelAspectSupport {
Entry entry = null;
try {
entry = SphU.entry(resourceName, resourceType, entryType, pjp.getArgs());
Object result = pjp.proceed();
return result;
return pjp.proceed();
} catch (BlockException ex) {
return handleBlockException(pjp, annotation, ex);
} catch (Throwable ex) {


Notiek ielāde…
Atcelt
Saglabāt