Skip to content

リソースCloseのエラーハンドリング追加#259

Merged
massongit merged 3 commits intomainfrom
add_close_3
Jan 28, 2026
Merged

リソースCloseのエラーハンドリング追加#259
massongit merged 3 commits intomainfrom
add_close_3

Conversation

@massongit
Copy link
Copy Markdown
Member

executeAndReadResponse関数とUploadFile関数にdefer Close処理を追加:

  • executeAndReadResponse: HTTPレスポンスBodyのClose処理
  • UploadFile: multipart.WriterのClose処理
  • 名前付き戻り値に変更しcloseErrでエラーシャドーイングを回避
  • リソースリークを防止し、Close時のエラーを適切に処理

🤖 Generated with Claude Code

executeAndReadResponse関数とUploadFile関数にdefer Close処理を追加:
- executeAndReadResponse: HTTPレスポンスBodyのClose処理
- UploadFile: multipart.WriterのClose処理
- 名前付き戻り値に変更しcloseErrでエラーシャドーイングを回避
- リソースリークを防止し、Close時のエラーを適切に処理

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Goryudyuma
Goryudyuma previously approved these changes Jan 28, 2026
@massongit massongit enabled auto-merge (squash) January 28, 2026 12:51
@massongit massongit merged commit fce611b into main Jan 28, 2026
36 checks passed
@massongit massongit deleted the add_close_3 branch January 28, 2026 13:04
@github-project-automation github-project-automation bot moved this from In Progress to Done in task list Jan 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants