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 don't think braces are necessary here, but this is not the best way to make a single-line validation. If you want validation without a control flow block in code, use a helper method. This form is not only shorter than a single-line conditionally-thrown exception, but it is also much easier to read.
Instead of
I like this better:
The text was updated successfully, but these errors were encountered: