From dfce6ebba40509bb67515d8fc2b74e6255e411ef Mon Sep 17 00:00:00 2001 From: ss-superman <549191802@qq.com> Date: Sun, 7 Feb 2021 15:24:19 +0800 Subject: [PATCH] Remove redundant code in SentinelResourceAspect (#2016) --- .../sentinel/annotation/aspectj/SentinelResourceAspect.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sentinel-extension/sentinel-annotation-aspectj/src/main/java/com/alibaba/csp/sentinel/annotation/aspectj/SentinelResourceAspect.java b/sentinel-extension/sentinel-annotation-aspectj/src/main/java/com/alibaba/csp/sentinel/annotation/aspectj/SentinelResourceAspect.java index 77c6772f..3e1a9d68 100644 --- a/sentinel-extension/sentinel-annotation-aspectj/src/main/java/com/alibaba/csp/sentinel/annotation/aspectj/SentinelResourceAspect.java +++ b/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) {