]> git.giacomolli.uk - onechat/blobdiff - telegram.go
Correct the remaining review style findings
[onechat] / telegram.go
index e3e33c913734b6901f02808f7a9d004fd2aa6f9f..306f8f5ab293a438da20411250b92ba21c4334d2 100644 (file)
@@ -349,7 +349,8 @@ func (b *TelegramBot) next() (Event, bool) {
 // typing shows the typing action once. A failure is not logged, because the
 // next message or poll logs the state of the network.
 func (b *TelegramBot) typing(ctx context.Context) {
-       _ = b.api.SendTyping(ctx, b.owner)
+       // The next message or poll reports a network failure.
+       b.api.SendTyping(ctx, b.owner) // nolint: errcheck
 }
 
 // post sends event to the chat. A reply goes as rich messages of its Markdown,