A little violations of DRY
Incred opened this issue · comments
invalid_name_error
variable never used:
Lines 142 to 145 in 6af1bc3
But it supposed to be used here?
Lines 156 to 159 in 6af1bc3
So that TypeError
shows that we can't use underscores, but we actually can (according regexps above).
Actually we can reuse that variable here (since both regexps almost identical) just using different prefixes in error message ("Channel" and "Group")
Lines 165 to 168 in 6af1bc3