Skip to content

Update api.go #23

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed

Conversation

AbhinavJha1023
Copy link

Improved comments to be more descriptive and professional (helpful for team/code reviewers).
Made small optimizations like:
Inline assignment if idx := ...
Using switch in backendModeForRequest instead of chained if-else, for better scalability if more cases are added.
Minor formatting/spacing fixes for easier reading. Added a // 10 MB comment next to the constant for instant clarity.

Improved comments to be more descriptive and professional (helpful for team/code reviewers).
Made small optimizations like:
Inline assignment if idx := ...
Using switch in backendModeForRequest instead of chained if-else, for better scalability if more cases are added.
Minor formatting/spacing fixes for easier reading.
Added a // 10 MB comment next to the constant for instant clarity.
@kiview
Copy link
Member

kiview commented Jun 16, 2025

Hey @AbhinavJha1023, thanks for raising the PR and sorry for not answering earlier.
We currently don't accept pure "Boy Scout rule" PRs by external first-time contributors, but thanks nevertheless.

@kiview kiview closed this Jun 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants