by Arnavion · 8y ago · 0 comments
A strange fix to equally strange code. In the old code `tags` wasn't used in the first place, and in the new code it's put inside a scope ensuring it definitely can't be used. Why not just delete it?
If it's being used just for side-effects in the `getAllHashtags()` call, why still bind it to a variable?
Edit: Also, it isn't consistent with the original code in that it prefixes the member access with `this.` whereas the old code didn't do that. If I were the bot's author I wouldn't consider this commit a particularly good example of the bot's capability...