Closed trajan0x closed 3 months ago
A modification was made to the tracingMiddleware
function within the Bot
struct, which is part of the contrib/opbot/botmd
package. This change introduces a new function called retrieveChannelIfExists
to handle the retrieval of the channel ID, ensuring robust handling of events or channels that may be nil.
File | Change Summary |
---|---|
contrib/opbot/botmd/middleware.go |
Introduced retrieveChannelIfExists to safely obtain the channel ID in tracingMiddleware function. |
In the lands of code, changes bright, Where rabbits bring new functions to light, Channels checked and events beware, Errors now faced with thoughtful care, In middleware’s watchful lore, all’s right.
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?
Attention: Patch coverage is 0%
with 6 lines
in your changes missing coverage. Please review.
Project coverage is 25.65579%. Comparing base (
d787c29
) to head (172ae11
). Report is 1 commits behind head on master.
Files | Patch % | Lines |
---|---|---|
contrib/opbot/botmd/middleware.go | 0.00000% | 6 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
[goreleaser]
Description
Fixes crash (addresses #2850)
Summary by CodeRabbit