-
Notifications
You must be signed in to change notification settings - Fork 5
Remove non-needed null checks #1545
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
Conversation
WalkthroughThe clientLoader in apps/cyberstorm-remix/app/p/packageListing.tsx updates DapperTs initialization to call tools.getConfig() (without optional chaining) for apiHost and sessionId. No other code paths or exports change. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
participant RouteLoader as clientLoader
participant Session as getSessionTools
participant Tools as tools
participant Dapper as DapperTs
RouteLoader->>Session: getSessionTools()
alt tools available
Session-->>RouteLoader: tools
RouteLoader->>Tools: getConfig()
Tools-->>RouteLoader: { apiHost, sessionId }
RouteLoader->>Dapper: new DapperTs({ apiHost, sessionId, fetchFn })
Dapper-->>RouteLoader: instance
else tools undefined (new strict access)
Note over RouteLoader: Runtime error on<br/>`tools.getConfig()` call
end
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Possibly related PRs
Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
🔇 Additional comments (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Gooood
Summary by CodeRabbit
Refactor
Notes