Skip to content

Conversation

@Ayoub-Mabrouk
Copy link

refactor: consolidate status code assignment logic

Replace two separate if statements with an else-if chain to:

  • Make err.status precedence over err.statusCode explicit
  • Avoid unnecessary assignment when both properties exist

Replace two separate if statements with an else-if chain to:

- Make err.status precedence over err.statusCode explicit

- Avoid unnecessary assignment when both properties exist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant