Files
zulip/zerver
Prakhar Pratyush 7065f91699 render_curl_example: Remove unused 'auth_email' & 'auth_api_key'.
The 'function' variable in 'APICodeExamplesPreprocessor.generate_text'
matches the pattern of API_ENDPOINT_NAME = r"/[a-z_\-/-{}]+:[a-z]+"

It is always of the form 'endpoint_path:endpoint_method'.

There's no possibility of multiple ':'.

This commit removes the unused code block in `render_curl_example`,
which was trying to get 'auth_email' & 'auth_api_key' from 'function'.

(cherry picked from commit 9785cb4a09)
2025-08-28 17:34:20 -07:00
..
2025-07-30 13:45:53 +00:00