Skip to content

Commit

Permalink
Fix typo.
Browse files Browse the repository at this point in the history
  • Loading branch information
q-uint committed May 6, 2024
1 parent 71575b8 commit 29520f3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pocketic/do.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ func (pic PocketIC) do(method, url string, input, output any) error {
if err := json.NewDecoder(resp.Body).Decode(output); err != nil {
return fmt.Errorf("failed to decode response body: %w", err)
}
return nil
case http.StatusAccepted:
var response startedOrBusyResponse
if err := json.NewDecoder(resp.Body).Decode(&response); err != nil {
Expand Down Expand Up @@ -73,6 +74,7 @@ func (pic PocketIC) do(method, url string, input, output any) error {
if err := json.NewDecoder(resp.Body).Decode(output); err != nil {
return fmt.Errorf("failed to decode response body: %w", err)
}
return nil
case http.StatusAccepted, http.StatusConflict:
default:
var errResp ErrorMessage
Expand Down

0 comments on commit 29520f3

Please sign in to comment.