Commit 34bfbfe
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 c4eb683 commit 34bfbfeCopy full SHA for 34bfbfe
File tree
Expand file treeCollapse file tree
1 file changed
+1
-6
lines changedOpen diff view settings
Filter options
- tools
Expand file treeCollapse file tree
1 file changed
+1
-6
lines changedOpen diff view settings
Collapse file
+1-6Lines changed: 1 addition & 6 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
13 | 13 | |
14 | 14 | |
15 | 15 | |
16 | | - |
17 | 16 | |
18 | 17 | |
19 | 18 | |
| ||
82 | 81 | |
83 | 82 | |
84 | 83 | |
85 | | - |
86 | | - |
87 | | - |
| 84 | + |
88 | 85 | |
89 | 86 | |
90 | 87 | |
| ||
176 | 173 | |
177 | 174 | |
178 | 175 | |
179 | | - |
180 | | - |
181 | 176 | |
182 | 177 | |
183 | 178 | |
|
0 commit comments