- Notifications
You must be signed in to change notification settings - Fork905
Commitd3581a8
committed
fix: resolve deferUnlambda linting issues by simplifying defer statements
Fixed occurrences of unnecessary function wrapping in defer statements in:- provisionerd/provisionerd.go- enterprise/coderd/proxyhealth/proxyhealth.go- cli/ssh.go- coderd/devtunnel/tunnel_test.goThis improves code readability by using the direct form of defer when possible.1 parent9b0a218 commitd3581a8
File tree
4 files changed
+6
-10
lines changed- cli
- coderd/devtunnel
- enterprise/coderd/proxyhealth
- provisionerd
4 files changed
+6
-10
lines changedLines changed: 2 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
452 | 452 |
| |
453 | 453 |
| |
454 | 454 |
| |
455 |
| - | |
456 |
| - | |
457 |
| - | |
| 455 | + | |
458 | 456 |
| |
459 | 457 |
| |
460 | 458 |
| |
461 | 459 |
| |
462 |
| - | |
463 |
| - | |
464 |
| - | |
| 460 | + | |
465 | 461 |
| |
466 | 462 |
| |
467 | 463 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
111 | 111 |
| |
112 | 112 |
| |
113 | 113 |
| |
114 |
| - | |
115 |
| - | |
| 114 | + | |
| 115 | + | |
116 | 116 |
| |
117 | 117 |
| |
118 | 118 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
216 | 216 |
| |
217 | 217 |
| |
218 | 218 |
| |
219 |
| - | |
| 219 | + | |
220 | 220 |
| |
221 | 221 |
| |
222 | 222 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
288 | 288 |
| |
289 | 289 |
| |
290 | 290 |
| |
291 |
| - | |
| 291 | + | |
292 | 292 |
| |
293 | 293 |
| |
294 | 294 |
| |
|
0 commit comments
Comments
(0)