Updated linter threw new warnings. Fixed.

This commit is contained in:
Gabe Kangas
2021-11-03 09:43:47 -07:00
parent 055ca479f0
commit 6ffa020c5f
2 changed files with 4 additions and 8 deletions

View File

@@ -74,7 +74,7 @@ func saveEvent(id string, userID string, body string, eventType string, hidden *
func getChat(query string) []events.UserMessageEvent {
history := make([]events.UserMessageEvent, 0)
rows, err := _datastore.DB.Query(query)
if err != nil {
if err != nil || rows.Err() != nil {
log.Errorln("error fetching chat history", err)
return history
}