refactor: remove empty bot constructors that only call super()#1078
refactor: remove empty bot constructors that only call super()#1078octo-patch wants to merge 1 commit into
Conversation
Removes unnecessary boilerplate constructors across 78 bot files where the constructor only calls super() with no additional initialization. JavaScript classes automatically invoke the parent constructor when no constructor is defined, so these are redundant. Closes ai-shifu#1008
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (78)
💤 Files with no reviewable changes (78)
📝 WalkthroughWalkthroughRemoved redundant Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~5 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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.
Code Review
This pull request removes redundant constructors that only call super() across a large number of bot implementation files. This is a standard code cleanup that simplifies class definitions while maintaining identical behavior. As there are no review comments to evaluate, I have no further feedback to provide.
Fixes #1008
Problem
Many bot files contain boilerplate constructors that only call
super()with no additional initialization logic:This was flagged in #1005 and #1012 by CodeRabbit and tracked in issue #1008. JavaScript classes automatically invoke the parent constructor when no constructor is defined, making these redundant.
Solution
Removed the empty
constructor() { super(); }blocks from 78 bot files across the codebase. The behavior is identical — JavaScript's default constructor callssuper()automatically for derived classes.Testing
super()call and nothing else) were removedSummary by CodeRabbit