dotnet / Scaffolding

Code generators to speed up development.
MIT License
620 stars 218 forks source link

Bootstrap5: Refactor unnecessary else block #2811

Closed suicodave closed 2 weeks ago

suicodave commented 2 weeks ago

Refactored the OnGetAsync method to simplify control flow by removing the unnecessary else statement and moving the return Page(); inside the conditional check where record is not null. This enhances readability and reduces nesting.

suicodave commented 2 weeks ago

@dotnet-policy-service agree

suicodave commented 2 weeks ago

LGTM! tyty for your contribution.

My pleasure!