refactor: use errors.New to replace fmt.Errorf with no parameters#2023
refactor: use errors.New to replace fmt.Errorf with no parameters#2023MSevey merged 1 commit intoevstack:mainfrom
Conversation
Signed-off-by: LesCyber <andi4cing@gmail.com>
WalkthroughThe pull request updates error instantiation across several files by replacing instances of Changes
Possibly related PRs
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (5)
✅ Files skipped from review due to trivial changes (1)
⏰ Context from checks skipped due to timeout of 90000ms (1)
🔇 Additional comments (11)
✨ Finishing Touches
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2023 +/- ##
==========================================
- Coverage 42.05% 41.95% -0.10%
==========================================
Files 80 80
Lines 12958 12958
==========================================
- Hits 5449 5437 -12
- Misses 6783 6793 +10
- Partials 726 728 +2 ☔ View full report in Codecov by Sentry. |
…#2053) Similar to #2023 I have checked across whole repository, there is no more `fmt.Errorf` with no parameters now. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Refactor** - Streamlined error handling to ensure consistent, straightforward error messages without changing overall functionality. - **Tests** - Adjusted internal test validations to align with the updated error reporting. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
unify the error handling methods that are different from the project style
Summary by CodeRabbit