Fix lint error

This commit is contained in:
Neil Alexander 2020-07-21 17:21:48 +01:00
parent b6bc132485
commit f54689f862
No known key found for this signature in database
GPG Key ID: A02A2019A2BB0944

View File

@ -412,12 +412,9 @@ func (d *Database) StoreEvent(
if err == sql.ErrNoRows {
// We've already inserted the event so select the numeric event ID
eventNID, stateNID, err = d.EventsTable.SelectEvent(ctx, txn, event.EventID())
if err != nil {
return fmt.Errorf("d.EventsTable.SelectEvent: %w", err)
}
}
if err != nil {
return fmt.Errorf("d.EventsTable.InsertEvent: %w", err)
return err
}
}