You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I admit that's still a little funny looking. But that's mostly a consequence of the structure of the code. The formatter has a very simple rule that if either operand of a binary operator contains a newline then we split at the operator too. That helps clarify precedence when you have nested binary operators of different kinds and generally avoids the operator getting buried in the middle of a pile of large code.
But in this case, it looks weird because you have one really large operand before <= (the entire subsections...length expression) and one really short one after (1). So it splits at the <= and the 1 looks a little lonely.
Aside from that, I think the new formatter is doing what I expect here and looks OK. (If this were my code, I'd probably make a utility function for the subsections...length part and call that from the assert.)
Actual
Expected
(Or something along these lines)
The text was updated successfully, but these errors were encountered: