Skip to content

Commit

Permalink
fix: remove unused parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
Divkix committed Jul 28, 2024
1 parent b9b8c8a commit 39d3502
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func main() {
// Create updater and dispatcher.
dispatcher := ext.NewDispatcher(&ext.DispatcherOpts{
// If an error is returned by a handler, log it and continue going.
Error: func(b *gotgbot.Bot, _ *ext.Context, err error) ext.DispatcherAction {
Error: func(_ *gotgbot.Bot, _ *ext.Context, err error) ext.DispatcherAction {
log.Println("an error occurred while handling update:", err.Error())
return ext.DispatcherActionNoop
},
Expand Down

0 comments on commit 39d3502

Please sign in to comment.