Commit 9cdfd11
fix(restore): propagate src.Close() error in copyFileIntoZip
If io.Copy succeeded but src.Close() failed, the close error was
silently discarded. Preserve the intent of not using defer (to avoid
accumulating open handles across Walk iterations) while returning the
close error when no copy error occurred.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 5927c28 commit 9cdfd11
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
245 | 245 | | |
246 | 246 | | |
247 | 247 | | |
248 | | - | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
249 | 251 | | |
250 | 252 | | |
251 | 253 | | |
| |||
0 commit comments