Commit 241eb0c
fix: close file descriptor on readSync failure in readFiles
Wrap fd operations in try/finally so fs.closeSync is always called,
even if fs.readSync throws an I/O error.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 8cfa8f5 commit 241eb0c
1 file changed
+5
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
237 | 237 | | |
238 | 238 | | |
239 | 239 | | |
240 | | - | |
241 | | - | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
242 | 245 | | |
243 | 246 | | |
244 | 247 | | |
| |||
0 commit comments