feat(cmd): wire --provider and --base-url flags into CLI (Phase 5) #106
@@ -384,7 +384,6 @@ func (c *Client) doRequestWithBody(ctx context.Context, method, reqURL string, r
|
||||
opts.extraHeaders = map[string]string{"Content-Type": "application/json"}
|
||||
|
|
||||
}
|
||||
return c.doRequestCore(ctx, method, reqURL, opts)
|
||||
|
||||
}
|
||||
|
gpt-review-bot
commented
[NIT] Minor formatting: there is an extra blank line between the closing brace of doRequestWithBody and the start of doJSONRequest that could be removed for consistency. **[NIT]** Minor formatting: there is an extra blank line between the closing brace of doRequestWithBody and the start of doJSONRequest that could be removed for consistency.
sonnet-review-bot
commented
[NIT] There is a spurious blank line before the closing brace of **[NIT]** There is a spurious blank line before the closing brace of `doRequestWithBody` (after `return c.doRequestCore(...)`). Minor formatting issue that gofmt would not flag since it's inside a function body, but it's visually inconsistent.
|
||||
|
||||
|
sonnet-review-bot
commented
[NIT] doJSONRequest is added but not yet called by any public methods in the diff (the github package has no PostReview/DismissReview/etc. visible in the diff). This is fine for an incremental PR, but it means the new helper is untested at the integration level. The unit tests for doJSONRequest itself are present and cover the retry path. **[NIT]** doJSONRequest is added but not yet called by any public methods in the diff (the github package has no PostReview/DismissReview/etc. visible in the diff). This is fine for an incremental PR, but it means the new helper is untested at the integration level. The unit tests for doJSONRequest itself are present and cover the retry path.
|
||||
// doJSONRequest performs an HTTP request with a JSON body and returns the response body.
|
||||
|
||||
Reference in New Issue
Block a user
[NIT] Stray blank line between the closing brace of
doRequestWithBodyand the start ofdoJSONRequestdoc comment — there is also a missing blank line before the closing}ofdoRequestWithBody(the}is on the line immediately afterreturn). Minor formatting inconsistency thatgofmtwould not catch but goimports might flag, and it reduces readability.