Commit 9f404e4
committed
refactor(@angular/build): replace switch statements with Array.includes() in extension helpers
Replace switch-based extension checks in hasTemplateExtension and
hasTypeScriptExtension with Array.prototype.includes() for better
readability and conciseness.1 parent 0f809d3 commit 9f404e4
1 file changed
+2
-21
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
262 | 262 | | |
263 | 263 | | |
264 | 264 | | |
265 | | - | |
266 | | - | |
267 | | - | |
268 | | - | |
269 | | - | |
270 | | - | |
271 | | - | |
272 | | - | |
273 | | - | |
274 | | - | |
| 265 | + | |
275 | 266 | | |
276 | 267 | | |
277 | 268 | | |
278 | | - | |
279 | | - | |
280 | | - | |
281 | | - | |
282 | | - | |
283 | | - | |
284 | | - | |
285 | | - | |
286 | | - | |
287 | | - | |
288 | | - | |
| 269 | + | |
289 | 270 | | |
0 commit comments