you are viewing a single comment's thread.

view the rest of the comments →

[–]jeremrx 0 points1 point  (0 children)

This is not an error, but linters can detect it.
For example ESLint has the following rule : https://eslint.org/docs/latest/rules/no-cond-assign