diff options
| author | 2024-12-16 16:28:33 +0800 | |
|---|---|---|
| committer | 2024-12-16 00:35:21 -0800 | |
| commit | 5cc865b9b93265fe21639c9e4db828901d3a49f9 (patch) | |
| tree | 5dad59730fd6fc8a3357a79acd9c51219be43869 /api/api.go | |
| parent | 2daef7f6cf3ab06149a0fd6aa63b06554c9c4e60 (diff) | |
PackageWatchdog: fix the double close issue.
1 without the IOException happen,the finishWrite method will close the stream.
2 with the IOException happen,the failWrite method will close the stream.
so,we no need to close the stream in finally method.
Bug: none
Flag: EXEMPT minor optimization
Change-Id: If2e01149499d4848ccc56323b964637c8894b658
Diffstat (limited to 'api/api.go')
0 files changed, 0 insertions, 0 deletions