初次PR:代码规范(不试用尾行注释)

pull/47/head
耿术强 3 years ago
parent 3cf27f90b4
commit 641c467bef

@ -27,7 +27,8 @@ public class PermissionInterceptor implements AsyncHandlerInterceptor {
public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception { public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {
if (!(handler instanceof HandlerMethod)) { if (!(handler instanceof HandlerMethod)) {
return true; // proceed with the next interceptor // proceed with the next interceptor
return true;
} }
// if need login // if need login
@ -53,7 +54,8 @@ public class PermissionInterceptor implements AsyncHandlerInterceptor {
request.setAttribute(LoginService.LOGIN_IDENTITY_KEY, loginUser); request.setAttribute(LoginService.LOGIN_IDENTITY_KEY, loginUser);
} }
return true; // proceed with the next interceptor // proceed with the next interceptor
return true;
} }
} }

Loading…
Cancel
Save