From dfd662b982bb849b8f0ab4f719c9602c354c00e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EC=9A=A9=EC=88=98?= Date: Thu, 29 Aug 2024 15:29:00 +0900 Subject: [PATCH] =?UTF-8?q?Refactor:=20map=20->=20=ED=95=9C=EB=B2=88?= =?UTF-8?q?=EC=97=90=20=EC=B2=98=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/worlabel/domain/auth/controller/AuthController.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/backend/src/main/java/com/worlabel/domain/auth/controller/AuthController.java b/backend/src/main/java/com/worlabel/domain/auth/controller/AuthController.java index c3dfab3..db0ea42 100644 --- a/backend/src/main/java/com/worlabel/domain/auth/controller/AuthController.java +++ b/backend/src/main/java/com/worlabel/domain/auth/controller/AuthController.java @@ -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;