The parentheses are not necessary, but makes it more readable. Also, I broke this into multiple lines to avoid horizontal scroll, but this is actually a single line function.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I came up with two revisions. The first is what I would actually prefer because of its readability. The second was just for fun.
This is nice and readable -- and a trick I learned early on was to exit early if you have an simple condition that determines the outcome.
This one does the same, but more concise.
The parentheses are not necessary, but makes it more readable. Also, I broke this into multiple lines to avoid horizontal scroll, but this is actually a single line function.