Skip to content

Commit

Permalink
lint: remove commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
umputun committed Dec 7, 2023
1 parent dae69b8 commit 04e23f3
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion app/events/telegram.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,6 @@ func (l *TelegramListener) procEvents(update tbapi.Update) error {
banUserStr := l.getBanUsername(resp, update)
if l.SuperUsers.IsSuper(msg.From.Username) {
log.Printf("[DEBUG] superuser %s requested ban, ignored", banUserStr)
// l.forwardToAdmin(banUserStr, msg) //nolint forward to admin here is for testing only
return nil
}
banSuccessMessage := fmt.Sprintf("[INFO] %s banned by bot for %v", banUserStr, resp.BanInterval)
Expand Down

0 comments on commit 04e23f3

Please sign in to comment.