Skip to content

Commit

Permalink
fix: NPE
Browse files Browse the repository at this point in the history
  • Loading branch information
ernado committed Dec 1, 2024
1 parent be2573c commit 64dec9e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions cmd/bot/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -277,9 +277,7 @@ func (b *App) Run(ctx context.Context) error {
if _, err := au.Bot(ctx, b.token); err != nil {
return errors.Wrap(err, "login")
}
b.logger.Info("Bot logged in",
zap.String("name", status.User.Username),
)
b.logger.Info("Bot logged in")
} else {
b.logger.Info("Bot login restored",
zap.String("name", status.User.Username),
Expand Down

0 comments on commit 64dec9e

Please sign in to comment.