Commit 58de6ce
process: refactor execution
• Removed unreachable code of the `evalModule()` function as an early
error is thrown when the `print` parameter is a truthy value.
• Make use of the nullish coalescing operator.
PR-URL: #40664
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Minwoo Jung <nodecorelab@gmail.com>1 parent 1c8590e commit 58de6ceCopy full SHA for 58de6ce
File tree
Expand file treeCollapse file tree
1 file changed
+2
-8
lines changedOpen diff view settings
Filter options
- lib/internal/process
Expand file treeCollapse file tree
1 file changed
+2
-8
lines changedOpen diff view settings
Collapse file
lib/internal/process/execution.js
Copy file name to clipboardExpand all lines: lib/internal/process/execution.js+2-8Lines changed: 2 additions & 8 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
42 | 42 | |
43 | 43 | |
44 | 44 | |
45 | | - |
46 | 45 | |
47 | 46 | |
48 | | - |
49 | | - |
50 | | - |
51 | | - |
52 | | - |
53 | | - |
| 47 | + |
54 | 48 | |
55 | 49 | |
56 | 50 | |
| ||
158 | 152 | |
159 | 153 | |
160 | 154 | |
161 | | - |
| 155 | + |
162 | 156 | |
163 | 157 | |
164 | 158 | |
|
0 commit comments