-
Notifications
You must be signed in to change notification settings - Fork 118
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
fix: return nil instead of error directly #3616
Conversation
Signed-off-by: rustco <[email protected]>
📝 WalkthroughWalkthroughThis pull request updates error handling in two functions. In the Ethereum filters API, the Changes
Sequence Diagram(s)sequenceDiagram
participant C as Caller
participant API as PublicFilterAPI
C->>API: Call GetLogs()
API-->>C: returnLogs(logs), nil
sequenceDiagram
participant C as Caller
participant S as Listen Function
C->>S: Call Listen()
S-->>C: ln, nil
Possibly related PRs
Suggested labels
Suggested reviewers
📜 Recent review detailsConfiguration used: .coderabbit.yaml 📒 Files selected for processing (2)
🧰 Additional context used📓 Path-based instructions (1)`**/*.go`: Review the Go code, point out issues relative to ...
🔇 Additional comments (2)
✨ 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
Documentation and Community
|
Description
The logic of err not being nil has been processed and returned before, so err must be nil here.
How Has This Been Tested?
Summary by CodeRabbit