Remove redundant code in SentinelResourceAspect (#2016)
This commit is contained in:
parent
fca70646ad
commit
dfce6ebba4
|
|
@ -54,8 +54,7 @@ public class SentinelResourceAspect extends AbstractSentinelAspectSupport {
|
||||||
Entry entry = null;
|
Entry entry = null;
|
||||||
try {
|
try {
|
||||||
entry = SphU.entry(resourceName, resourceType, entryType, pjp.getArgs());
|
entry = SphU.entry(resourceName, resourceType, entryType, pjp.getArgs());
|
||||||
Object result = pjp.proceed();
|
return pjp.proceed();
|
||||||
return result;
|
|
||||||
} catch (BlockException ex) {
|
} catch (BlockException ex) {
|
||||||
return handleBlockException(pjp, annotation, ex);
|
return handleBlockException(pjp, annotation, ex);
|
||||||
} catch (Throwable ex) {
|
} catch (Throwable ex) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue