Commit 145b668
module: move unnecessary work for early return
The exts and trailingSlash variables are only used if the
path isn't cached. This commit moves them further down in the
code, and changes from var to const.
PR-URL: #3579
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Trevor Norris <trev.norris@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Michaël Zasso <mic.besace@gmail.com>1 parent f28a640 commit 145b668Copy full SHA for 145b668
File tree
Expand file treeCollapse file tree
1 file changed
+3
-4
lines changedOpen diff view settings
Filter options
- lib
Expand file treeCollapse file tree
1 file changed
+3
-4
lines changedOpen diff view settings
Collapse file
+3-4Lines changed: 3 additions & 4 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
126 | 126 | |
127 | 127 | |
128 | 128 | |
129 | | - |
130 | | - |
131 | 129 | |
132 | 130 | |
133 | 131 | |
134 | 132 | |
135 | | - |
136 | | - |
137 | 133 | |
138 | 134 | |
139 | 135 | |
140 | 136 | |
141 | 137 | |
| 138 | + |
| 139 | + |
| 140 | + |
142 | 141 | |
143 | 142 | |
144 | 143 | |
|
0 commit comments