Преглед на файлове

Remove redundant code in SentinelResourceAspect (#2016)

master
ss-superman GitHub преди 3 години
родител
ревизия
dfce6ebba4
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
променени са 1 файла, в които са добавени 1 реда и са изтрити 2 реда
  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 Целия файл

@@ -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) {


Loading…
Отказ
Запис