Skip to content

refactor(client): extract constants and clean up patterns#10

Merged
lostmygithubaccount merged 1 commit intomainfrom
cody/code-quality
Apr 5, 2026
Merged

refactor(client): extract constants and clean up patterns#10
lostmygithubaccount merged 1 commit intomainfrom
cody/code-quality

Conversation

@lostmygithubaccount
Copy link
Copy Markdown
Member

Summary

  • Extract repeated (200..300) HTTP status range to a SUCCESS_STATUS constant in client.rs
  • Remove trailing comma in get_duckling_config format string
  • Extract repeated trim().to_string() pattern to a trimmed() helper in auth.rs

🤖 Generated with Claude Code

- Extract repeated (200..300) status range to SUCCESS_STATUS constant
- Remove trailing comma in format string (get_duckling_config)
- Extract trim().to_string() pattern to trimmed() helper in auth

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@lostmygithubaccount lostmygithubaccount enabled auto-merge (squash) April 5, 2026 22:20
@lostmygithubaccount lostmygithubaccount merged commit 7e70863 into main Apr 5, 2026
1 check passed
@lostmygithubaccount lostmygithubaccount deleted the cody/code-quality branch April 5, 2026 22:21
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.

1 participant