Skip to content

refactor(@angular/ssr): simplify response destroyed/closed check - #33821

Open
alan-agius4 wants to merge 1 commit into
angular:mainfrom
alan-agius4:refactor-ssr-response-destroyed-check
Open

refactor(@angular/ssr): simplify response destroyed/closed check#33821
alan-agius4 wants to merge 1 commit into
angular:mainfrom
alan-agius4:refactor-ssr-response-destroyed-check

Conversation

@alan-agius4

@alan-agius4 alan-agius4 commented Aug 10, 2026

Copy link
Copy Markdown
Collaborator

Simplifies isResponseDestroyedOrClosed by directly evaluating boolean properties on the response destination and its underlying stream.

@alan-agius4
alan-agius4 requested a review from clydin August 10, 2026 07:24
@alan-agius4 alan-agius4 added action: review The PR is still awaiting reviews from at least one requested reviewer target: patch This PR is targeted for the next patch release labels Aug 10, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request simplifies the isResponseDestroyedOrClosed function in packages/angular/ssr/node/src/response.ts by removing redundant Boolean() type castings, making the boolean evaluation more concise. There are no review comments, so I have no feedback to provide.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

action: review The PR is still awaiting reviews from at least one requested reviewer area: @angular/ssr target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant