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