Closed suicodave closed 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.
OnGetAsync
return Page();
@dotnet-policy-service agree
LGTM! tyty for your contribution.
My pleasure!
Refactored the
OnGetAsync
method to simplify control flow by removing the unnecessary else statement and moving thereturn Page();
inside the conditional check where record is not null. This enhances readability and reduces nesting.