常量优化

This commit is contained in:
none
2023-03-20 11:00:36 +08:00
parent 337e600432
commit dfce2fc477
4 changed files with 13 additions and 7 deletions

View File

@@ -40,7 +40,7 @@ public class FrontMiddleware implements HandlerInterceptor {
return HandlerInterceptor.super.preHandle(request, response, handler);
}
if (Arrays.stream(FrontendConstant.UN_AUTH_URI_WHITELIST).toList().contains(request.getRequestURI())) {
if (FrontendConstant.UN_AUTH_URI_WHITELIST.contains(request.getRequestURI())) {
return HandlerInterceptor.super.preHandle(request, response, handler);
}