Refactor: map -> 한번에 처리

This commit is contained in:
김용수 2024-08-29 15:29:00 +09:00
parent 331950ec70
commit dfd662b982

View File

@ -79,8 +79,7 @@ public class AuthController {
return Arrays.stream(cookies) return Arrays.stream(cookies)
.filter(cookie -> "refreshToken".equals(cookie.getName())) .filter(cookie -> "refreshToken".equals(cookie.getName()))
.findFirst() .findFirst()
.map(Cookie::getValue) .map(cookie -> cookie.getValue().trim())
.map(String::trim)
.orElse(null); .orElse(null);
} }
return null; return null;