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)
.filter(cookie -> "refreshToken".equals(cookie.getName()))
.findFirst()
.map(Cookie::getValue)
.map(String::trim)
.map(cookie -> cookie.getValue().trim())
.orElse(null);
}
return null;