优化代码 将空‘catch’块形参重命名为‘ignored’

Signed-off-by: 梁剑锋 <1822213252@qq.com>
This commit is contained in:
梁剑锋 2022-11-21 07:20:48 +00:00 committed by Gitee
parent 223ae7ae72
commit 1ae35032a5
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 2 additions and 2 deletions

View File

@ -83,7 +83,7 @@ public class SysUserOnlineController extends BaseController {
public R<Void> forceLogout(@PathVariable String tokenId) {
try {
StpUtil.kickoutByTokenValue(tokenId);
} catch (NotLoginException e) {
} catch (NotLoginException ignored) {
}
return R.ok();
}

View File

@ -128,7 +128,7 @@ public class SysLoginService {
LoginUser loginUser = LoginHelper.getLoginUser();
StpUtil.logout();
asyncService.recordLogininfor(loginUser.getUsername(), Constants.LOGOUT, MessageUtils.message("user.logout.success"), ServletUtils.getRequest());
} catch (NotLoginException e) {
} catch (NotLoginException ignored) {
}
}