Commit 4c74b88
committed
http: simplify getName with destructuring and template literals
Use object destructuring to extract options properties and template
literals to construct the name string, improving code readability
and reducing intermediate string concatenations.1 parent a5f3cd8 commit 4c74b88
1 file changed
+6
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
259 | 259 | | |
260 | 260 | | |
261 | 261 | | |
262 | | - | |
263 | | - | |
264 | | - | |
265 | | - | |
266 | | - | |
267 | | - | |
268 | | - | |
269 | | - | |
270 | | - | |
| 262 | + | |
| 263 | + | |
271 | 264 | | |
272 | 265 | | |
273 | 266 | | |
274 | | - | |
275 | | - | |
| 267 | + | |
| 268 | + | |
276 | 269 | | |
277 | | - | |
278 | | - | |
| 270 | + | |
| 271 | + | |
279 | 272 | | |
280 | 273 | | |
281 | 274 | | |
| |||
0 commit comments