suicidesquad1337 / bot

GNU General Public License v3.0
2 stars 1 forks source link

Duplicated code in invite_tracker cog #13

Closed Erik1000 closed 3 years ago

Erik1000 commented 3 years ago

There is a code duplicate in the invite tracker.

code starting at https://github.com/suicidesquad1337/bot/blob/ee14b41b7387d5b0403260412cfba397075d4c6b/bot/cogs/invite_tracker.py#L80

is the same as

https://github.com/suicidesquad1337/bot/blob/ee14b41b7387d5b0403260412cfba397075d4c6b/bot/cogs/invite_tracker.py#L123

isn't it?

Erik1000 commented 3 years ago

This could be the reason why the method delete_invites sometimes failed to delete an invite.

Erik1000 commented 3 years ago

Fixed in b0c26a122e9977ef511ff43a87db8f6346d4c5d6