Add lint to CI and pre-commit

This commit is contained in:
Tulir Asokan
2022-04-15 13:13:46 +03:00
parent c9633c095d
commit 7425bc25d9
5 changed files with 70 additions and 3 deletions

View File

@ -840,7 +840,7 @@ func (c *Container) MarkRead(roomID id.RoomID, eventID id.EventID) {
defer debug.Recover()
err := c.client.MarkRead(roomID, eventID)
if err != nil {
debug.Print("Failed to mark %s in %s as read: %v", eventID, roomID, err)
debug.Printf("Failed to mark %s in %s as read: %v", eventID, roomID, err)
}
}()
}