review: switch cleanup to defer · github/github-mcp-server@e5f19db · GitHub
Skip to content

Commit e5f19db

Browse files
7cea4701430283a4267f819a278be05d_pingqaCopilot
authored andcommitted
review: switch cleanup to defer
Per @SamMorrowDrums review — replace the manual cleanup() calls before each error return with a single defer right after cmd.Start(). Same behaviour, less code. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent c05e1bb commit e5f19db

1 file changed

Lines changed: 5 additions & 13 deletions

File tree

‎cmd/mcpcurl/main.go‎

Lines changed: 5 additions & 13 deletions

0 commit comments

Comments
 (0)