Refactor: map -> 한번에 처리
This commit is contained in:
parent
331950ec70
commit
dfd662b982
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user