tools: avoid using process.cwd in tools/lint-js · nodejs/node@5aff3d2 · GitHub
Skip to content

Commit 5aff3d2

Browse files
tniessengibfahn
authored andcommitted
tools: avoid using process.cwd in tools/lint-js
The first occurrence of path.join() can easily be replaced with path.resolve(). The second occurrence should be unnecessary as ESLint will resolve the path internally, and the old check probably did not work as intended anyway. PR-URL: #17121 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 2fb6515 commit 5aff3d2

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

tools/lint-js.js

Lines changed: 1 addition & 6 deletions

0 commit comments

Comments
 (0)