Skip to content

Commit

Permalink
refactor: 개행을 없애기 위해 스트림 내부 변수 명에 단축어 사용
Browse files Browse the repository at this point in the history
  • Loading branch information
zangsu committed Jan 5, 2025
1 parent 794a2e9 commit 38b5f72
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,7 @@ public ResponseEntity<LoginResponse> login(
) {
LoginMember loginMember = authService.login(loginRequest);
Credential credential = credentialProvider.createCredential(loginMember);
credentialManagers.forEach(
credentialManager -> credentialManager.setCredential(httpServletResponse, credential)
);
credentialManagers.forEach(cm -> cm.setCredential(httpServletResponse, credential));
return ResponseEntity.ok(LoginResponse.from(loginMember));
}

Expand All @@ -59,9 +57,7 @@ public ResponseEntity<Void> checkLogin(

@PostMapping("/logout")
public ResponseEntity<Void> logout(HttpServletResponse httpServletResponse) {
credentialManagers.forEach(
credentialManager -> credentialManager.removeCredential(httpServletResponse)
);
credentialManagers.forEach(cm -> cm.removeCredential(httpServletResponse));
return ResponseEntity.noContent().build();
}
}

0 comments on commit 38b5f72

Please sign in to comment.