Commit 5039a4e
committed
fix: move recording proxy cleanup defer out of if/else block
The defer for recordCleanup was inside an else block, which meant it
was scoped to that block only. Restructure to declare variables first,
check the error, then defer cleanup unconditionally - matching the
pattern already used in run.go.
Fixes #1980
Fixes #1987
Assisted-By: docker-agent1 parent 1f2980b commit 5039a4e
1 file changed
+7
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
| 74 | + | |
| 75 | + | |
75 | 76 | | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | 77 | | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| |||
0 commit comments