Commit f9946b3
committed
fix: Resolve dupBranchBody in VSCode extension installation
- Extract common command execution logic to eliminate duplicate branches
- Both Windows and non-Windows branches now only differ in executable name
- Fixes gocritic dupBranchBody warning in downloadAndInstallExtension function1 parent 36304bf commit f9946b3
2 files changed
+12
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
203 | 203 | | |
204 | 204 | | |
205 | 205 | | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
| 206 | + | |
| 207 | + | |
214 | 208 | | |
215 | 209 | | |
216 | 210 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
135 | | - | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
136 | 138 | | |
137 | 139 | | |
138 | 140 | | |
| |||
535 | 537 | | |
536 | 538 | | |
537 | 539 | | |
538 | | - | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
539 | 543 | | |
540 | 544 | | |
541 | 545 | | |
542 | 546 | | |
543 | 547 | | |
544 | 548 | | |
545 | 549 | | |
546 | | - | |
| 550 | + | |
547 | 551 | | |
548 | | - | |
| 552 | + | |
549 | 553 | | |
550 | | - | |
| 554 | + | |
551 | 555 | | |
552 | 556 | | |
| 557 | + | |
553 | 558 | | |
554 | 559 | | |
555 | 560 | | |
| |||
0 commit comments