Skip to content

Commit

Permalink
remove inconsistent commenting
Browse files Browse the repository at this point in the history
  • Loading branch information
haruska committed Apr 4, 2024
1 parent 129931a commit 28c0d64
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions pinecone/management_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -467,19 +467,14 @@ func (c *ManagementClient) DeleteApiKey(ctx context.Context, apiKeyId uuid.UUID)

switch resp.StatusCode() {
case http.StatusOK, http.StatusAccepted, http.StatusNoContent:
// The API key was successfully deleted.
return nil
case http.StatusUnauthorized:
// The request was unauthorized.
return fmt.Errorf("unauthorized: %v", resp.JSON401)
case http.StatusNotFound:
// The specified API key was not found.
return fmt.Errorf("API key not found: %v", resp.JSON404)
case http.StatusInternalServerError:
// An internal server error occurred.
return fmt.Errorf("internal server error: %v", resp.JSON500)
default:
// An unexpected status code was received.
return fmt.Errorf("unexpected status code: %d", resp.StatusCode())
}
}

0 comments on commit 28c0d64

Please sign in to comment.