Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tools: remove conditional assignment in custom ESLint rule
These changes no-duplicate-require.js so that it doesn't use an assignment in a conditional, which can be easy to misread as a comparison rather than an assignment. It also means we change a do/while (which we don't use much in our code) to the much more common while construct. PR-URL: nodejs#41325 Reviewed-By: Michaël Zasso <targos@protonmail.com>
- Loading branch information