Fix formatting of code in `prettier` crate (#8526)

Came across this code, saw lots of blue squiggly lines, saw a chance to
simplify the code a little bit and reduce indentation.

(Kinda ironic that I'm the one formatting the prettier code, right?)

Release Notes:

- N/A
9f7e625d37Thorsten Ball committed on 2/28/2024, 11:51:08 AM· committed by GitHubparenta3174be
1 file changedLine totals unavailable