代码简化

This commit is contained in:
网游之鱼 2022-05-26 09:30:17 +00:00 committed by Gitee
parent e1c855b091
commit 8fb12f9d5a
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ public class SysIndexController extends BaseController
Cookie[] cookies = ServletUtils.getRequest().getCookies();
for (Cookie cookie : cookies)
{
if (StringUtils.isNotEmpty(cookie.getName()) && "nav-style".equalsIgnoreCase(cookie.getName()))
if ("nav-style".equalsIgnoreCase(cookie.getName()))
{
indexStyle = cookie.getValue();
break;